Skip to content
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

Add error description when the witness version does not match #970

Merged
merged 1 commit into from
Nov 20, 2023
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
5 changes: 5 additions & 0 deletions benchexec/tools/witnesslint.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ def determine_result(self, run):
witness_type_match = self.get_value_from_output(
run.output, "Witness Type-Match"
)
witness_version_match = self.get_value_from_output(
run.output, "Witness Version-Match"
)
if "witnesslint finished" not in run.output[-1] or exit_code == 7:
return "EXCEPTION"
elif exit_code == 1:
Expand All @@ -50,6 +53,8 @@ def determine_result(self, run):
return result.RESULT_ERROR + " (program does not exist)"
elif witness_type_match == "False":
return result.RESULT_ERROR + " (unexpected witness type)"
elif witness_version_match == "False":
return result.RESULT_ERROR + " (unexpected witness version)"
elif exit_code == 0:
return result.RESULT_DONE

Expand Down