[rtems-tools commit] tester/bsp-builder: Yield the job control thread when in a dry-run.
Chris Johns
chrisj at rtems.org
Sat Sep 8 05:37:49 UTC 2018
Module: rtems-tools
Branch: master
Commit: 5075e8ed025baf2a0020b5f8832ffaf6ac336d7a
Changeset: http://git.rtems.org/rtems-tools/commit/?id=5075e8ed025baf2a0020b5f8832ffaf6ac336d7a
Author: Chris Johns <chrisj at rtems.org>
Date: Sat Sep 8 15:36:31 2018 +1000
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(-)
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:
More information about the vc
mailing list