mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-16 11:55:29 +00:00
Better handle unexpected return codes.
This commit is contained in:
parent
612e6c5f84
commit
7608cdbaa4
|
@ -234,7 +234,13 @@ class WesnothRunner:
|
|||
subprocess.run(gdb_args, timeout=240)
|
||||
test_summary.crash_test(test_list)
|
||||
raise UnexpectedTestStatusException()
|
||||
returned_result = UnitTestResult(res.returncode)
|
||||
returned_result = None
|
||||
try:
|
||||
returned_result = UnitTestResult(res.returncode)
|
||||
except:
|
||||
print("Wesnoth returned an unexpected value: ", res.returncode)
|
||||
test_summary.crash_test(test_list)
|
||||
raise UnexpectedTestStatusException()
|
||||
if returned_result == expected_result:
|
||||
test_summary.pass_test(test_list)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user