Skip to content

Commit 0cb2017

Browse files
authored
gh-109413: Fix libregrtest get_running() (#127153)
Skip threads which are not running.
1 parent 8899e85 commit 0cb2017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/libregrtest/run_workers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def get_running(workers: list[WorkerThread]) -> str | None:
457457
running: list[str] = []
458458
for worker in workers:
459459
test_name = worker.test_name
460-
if not test_name:
460+
if test_name == _NOT_RUNNING:
461461
continue
462462
dt = time.monotonic() - worker.start_time
463463
if dt >= PROGRESS_MIN_TIME:

0 commit comments

Comments
 (0)