D-Bus testing: avoid hogging the CPU during process shutdown

While waiting for the processes to quit, at least sleep for short
periods of time. Generally a good idea, and seems to be necessary
on the new nightly test setup to give the processes enough CPU time
to really shut down.
This commit is contained in:
patrick.ohly@intel.com 2012-10-12 12:10:54 -07:00
parent fd539a5f46
commit f5b5915bec
1 changed files with 1 additions and 0 deletions

View File

@ -724,6 +724,7 @@ class DBusUtil(Timeout):
logging.printf("all process gone at %s",
time.asctime())
return []
time.sleep(0.1)
# Force killing of remaining children. It's still possible
# that one of them quits before we get around to sending the
# signal.