Mark task as failed if benchmark validation fails

Closes-Bug: #1276826
Change-Id: Idab924ab51cdd30c232b620abf161af40f3e4ac2
This commit is contained in:
Hugh Saunders 2014-02-05 15:40:35 +00:00 committed by Gerrit Code Review
parent 7e02e33c1f
commit 7bd24f74e7
2 changed files with 2 additions and 0 deletions

View File

@ -146,6 +146,7 @@ class TestEngine(object):
"validation":
{"is_valid": False,
"exc_msg": e.message}})
self.task.set_failed()
LOG.error(_("Scenario (%(pos)s, %(name)s) input arguments "
"validation error: %(msg)s") %
{"pos": n, "name": name, "msg": e.message})

View File

@ -194,6 +194,7 @@ class TestEngineTestCase(test.TestCase):
{'raw': [],
'validation': {'is_valid': False,
'exc_msg': validation_exc.message}}),
mock.call.set_failed(),
mock.call.update_status(s.FINISHED)
]
# NOTE(msdubov): Ignore task['uuid'] calls which are used for logging