Add "Failed creating OVB stack" to failure conditions in testenv-client
Change-Id: I056024dcb03ead81dd1cb4c14efbf8cfecf7f5ec
This commit is contained in:
parent
49b00c54cd
commit
3a63c1bcd0
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue