Skip to content

Commit 966d0e1

Browse files
authored
Merge pull request #1810 from verilog-to-routing/odin_verification_script
[Odin]: show expected failure status in verify odin script
2 parents f536a13 + 3206d43 commit 966d0e1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ODIN_II/regression_test/parse_result/parse_result.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ def success_line(key):
6060
return colored(output[:_LEN], "green") + " " + key
6161

6262

63+
def expected_fail(key):
64+
output = " Expected Failure " + _FILLER_LINE
65+
return colored(output[:_LEN], "orange") + " " + key
66+
67+
6368
def mismatch_str(header, expected, got):
6469
header = "{0:<{1}}".format("- " + header, _LEN)
6570
expected = colored("[-" + str(expected) + "-]", "red")
@@ -675,7 +680,10 @@ def _compare(toml_file_name, golden_result_file_name, result_file_name, diff_fil
675680
if key not in tbl and SUBSET:
676681
pass
677682
else:
678-
print(success_line(key))
683+
if golden_tbl[key]["exit"]:
684+
print(expected_fail(key))
685+
else:
686+
print(success_line(key))
679687

680688
# add the new entries
681689
for key in tbl:

0 commit comments

Comments
 (0)