From 5075e8ed025baf2a0020b5f8832ffaf6ac336d7a Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sat, 8 Sep 2018 15:36:31 +1000 Subject: tester/bsp-builder: Yield the job control thread when in a dry-run. This stops a dry-run blocking while the job control thread spins. --- tester/rt/check.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tester') diff --git a/tester/rt/check.py b/tester/rt/check.py index a5deed7..e202946 100755 --- a/tester/rt/check.py +++ b/tester/rt/check.py @@ -1373,7 +1373,9 @@ class builder: job.clean() active_jobs.remove(job) self.jobs_completed += 1 - if not self.options['dry-run']: + if self.options['dry-run']: + time.sleep(0) + else: time.sleep(0.100) except: for job in active_jobs: -- cgit v1.2.3