gh-109413: Fix libregrtest get_running() (#127153)

Skip threads which are not running.
This commit is contained in:
Victor Stinner 2024-11-22 16:56:03 +01:00 committed by GitHub
parent 8899e85de1
commit 0cb20177d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -457,7 +457,7 @@ def get_running(workers: list[WorkerThread]) -> str | None:
running: list[str] = []
for worker in workers:
test_name = worker.test_name
if not test_name:
if test_name == _NOT_RUNNING:
continue
dt = time.monotonic() - worker.start_time
if dt >= PROGRESS_MIN_TIME: