mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-22 20:05:09 +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)
|
subprocess.run(gdb_args, timeout=240)
|
||||||
test_summary.crash_test(test_list)
|
test_summary.crash_test(test_list)
|
||||||
raise UnexpectedTestStatusException()
|
raise UnexpectedTestStatusException()
|
||||||
|
returned_result = None
|
||||||
|
try:
|
||||||
returned_result = UnitTestResult(res.returncode)
|
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:
|
if returned_result == expected_result:
|
||||||
test_summary.pass_test(test_list)
|
test_summary.pass_test(test_list)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user