mirror of
https://github.com/python/cpython.git
synced 2024-11-23 01:45:25 +08:00
gh-109413: Fix libregrtest get_running() (#127153)
Skip threads which are not running.
This commit is contained in:
parent
8899e85de1
commit
0cb20177d6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user