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.
This commit is contained in:
Chris Johns 2018-09-08 15:36:31 +10:00
parent 14a12d3645
commit 5075e8ed02

View File

@ -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: