changeset 53150:5d3a94ff8015

run-test: do not mark test as timed out when they returned fine This while look break when the process finish or when the time out is reached. So we need to check why we existed the loop. Not sure how it has not created more problem so far.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 29 Jan 2025 12:12:57 +0100
parents f5b237f63683
children 019332a5a87d
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Tue Apr 15 16:56:55 2025 +0200
+++ b/tests/run-tests.py	Wed Jan 29 12:12:57 2025 +0100
@@ -369,9 +369,9 @@
             start = time.time()
             while time.time() - start < timeout and p.returncode is None:
                 time.sleep(0.1)
-            p.timeout = True
-            vlog('# Timout reached for process %d' % p.pid)
             if p.returncode is None:
+                p.timeout = True
+                vlog('# Timout reached for process %d' % p.pid)
                 terminate(p)
 
         threading.Thread(target=t).start()