tests: add some timeout for process exit

This commit is contained in:
Marek Marczykowski-Górecki 2015-02-19 03:54:57 +01:00
parent 091d02b9a3
commit 7596f753d8

View File

@ -136,8 +136,10 @@ class TC_00_AppVM(qubes.tests.SystemTestsMixin, qubes.tests.QubesTestCase):
# this may hang in some buggy cases
elif len(p.stderr.read()) > 0:
result.value = 2
elif p.pull() is None:
result.value = 3
elif p.poll() is None:
time.sleep(1)
if p.poll() is None:
result.value = 3
self.testvm1.start()