Add "Failed creating OVB stack" to failure conditions in testenv-client

Change-Id: I056024dcb03ead81dd1cb4c14efbf8cfecf7f5ec
This commit is contained in:
Gabriele Cerami 2016-10-11 11:39:02 +02:00
parent 49b00c54cd
commit 3a63c1bcd0
1 changed files with 3 additions and 2 deletions

View File

@ -64,14 +64,15 @@ class TestCallback(object):
time_waiting = time.time() - self.created
if time_waiting > 90:
logger.warn('%.1f seconds waiting for a worker.' % (time_waiting))
logger.info('Running command "%s"', ' '.join(self.command))
if job.arguments == "Couldn't retrieve env":
if "Couldn't retrieve env" in job.arguments or "Failed creating OVB stack" in job.arguments:
logger.error(job.arguments)
self.rv = 2
job.sendWorkComplete("")
return
logger.info('Running command "%s"', ' '.join(self.command))
with tempfile.NamedTemporaryFile('w') as fp:
fp.write(job.arguments)
fp.flush()