Tests: Fix t_json_only_debugcheck to not need sensitive golden file

This commit is contained in:
Wilson Snyder 2026-03-07 08:35:54 -05:00
parent 4d369e4262
commit 67ced4715d
2 changed files with 7 additions and 2714 deletions

File diff suppressed because it is too large Load Diff

View File

@ -7,6 +7,7 @@
# SPDX-FileCopyrightText: 2024 Wilson Snyder
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
import json
import vltest_bootstrap
test.scenarios('vlt')
@ -21,6 +22,11 @@ test.compile(verilator_flags2=[
make_top_shell=False,
make_main=False)
test.files_identical(out_filename, test.golden_filename, 'logfile')
# not files_identical as output is too sensitive to internal changes
test.file_grep(out_filename, r'"type":"MODULE"')
# check JSON is parsable
with open(out_filename, 'r', encoding="utf8") as fh:
json.load(fh)
test.passes()