Skip to content

[Odin]: show expected failure status in verify odin script #1810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion ODIN_II/regression_test/parse_result/parse_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ def success_line(key):
return colored(output[:_LEN], "green") + " " + key


def expected_fail(key):
output = " Expected Failure " + _FILLER_LINE
return colored(output[:_LEN], "orange") + " " + key


def mismatch_str(header, expected, got):
header = "{0:<{1}}".format("- " + header, _LEN)
expected = colored("[-" + str(expected) + "-]", "red")
Expand Down Expand Up @@ -675,7 +680,10 @@ def _compare(toml_file_name, golden_result_file_name, result_file_name, diff_fil
if key not in tbl and SUBSET:
pass
else:
print(success_line(key))
if golden_tbl[key]["exit"]:
print(expected_fail(key))
else:
print(success_line(key))

# add the new entries
for key in tbl:
Expand Down