run_wml_tests: Fix attempting to run tests expected to timeout when timeout is disabled

This commit is contained in:
Celtic Minstrel 2021-02-28 01:51:30 -05:00 committed by Celtic Minstrel
parent c1c5b5dd7d
commit b0d320d2c1

View file

@ -134,6 +134,9 @@ class WesnothRunner:
args.append("-u")
args.append(test.name)
if self.timeout == 0:
if test.status == UnitTestResult.TIMEOUT:
print('Skipping test', test_list[0].name, 'because timeout is disabled')
return
timeout = None
else:
if len(test_list) == 1: