mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-15 17:21:32 +00:00
run_wml_tests: Fix off-by-one error in 1285060bc4
This commit is contained in:
parent
d507833199
commit
9535ed926c
|
@ -213,7 +213,7 @@ class WesnothRunner:
|
|||
if expected_result == UnitTestResult.PASS and line.startswith("PASS TEST"):
|
||||
continue
|
||||
print(line)
|
||||
print("Failure, Wesnoth returned", returned_result, "for", test_list[num_passed - 1].name, "but we expected", expected_result)
|
||||
print("Failure, Wesnoth returned", returned_result, "for", test_list[num_passed].name, "but we expected", expected_result)
|
||||
test_summary.fail_test()
|
||||
test_summary.skip_test(len(test_list) - num_passed - 1)
|
||||
raise UnexpectedTestStatusException()
|
||||
|
|
Loading…
Reference in New Issue
Block a user