From 50ee9cf0532fd0c2a8d774ce321551947d328b81 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sun, 28 Feb 2021 01:51:30 -0500 Subject: [PATCH] run_wml_tests: Fix attempting to run tests expected to timeout when timeout is disabled --- run_wml_tests | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run_wml_tests b/run_wml_tests index af4e9b4bd30f..ac5871da0344 100755 --- a/run_wml_tests +++ b/run_wml_tests @@ -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: