Let alarms at end of jobset.py trigger isntead of clearing

pull/12289/head
Matt Kwong 7 years ago
parent 5920abc535
commit 3da8c5defb
  1. 6
      tools/run_tests/python_utils/jobset.py

@ -473,8 +473,10 @@ class Jobset(object):
while self._running: while self._running:
if self.cancelled(): pass # poll cancellation if self.cancelled(): pass # poll cancellation
self.reap() self.reap()
if platform_string() != 'windows': global have_alarm
signal.alarm(0) if platform_string() != 'windows' and have_alarm:
signal.alarm(1)
signal.pause()
return not self.cancelled() and self._failures == 0 return not self.cancelled() and self._failures == 0

Loading…
Cancel
Save