summaryrefslogtreecommitdiff
path: root/automated
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2017-03-09 15:45:04 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-03-17 11:14:32 +0000
commit1f2a9a0701cd3f3f3419768704d5f09800694bdf (patch)
tree4e735740d888924f724a75969d7a8742c238b206 /automated
parentf3863b9441c5a1e72cf60b08a5955305aaefbe3f (diff)
automated: test-runner: mark test run as fail when no result found
Change-Id: I6cfc6f192a2392d8da13b788caaba97d08b50227 Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated')
-rwxr-xr-xautomated/utils/test-runner.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/automated/utils/test-runner.py b/automated/utils/test-runner.py
index 4fd4159..888107f 100755
--- a/automated/utils/test-runner.py
+++ b/automated/utils/test-runner.py
@@ -489,6 +489,10 @@ class ResultParser(object):
self.metrics.append(data.copy())
+ # Mark test run as fail when no result found.
+ if not self.metrics:
+ self.metrics = [{'test_case_id': 'test-run', 'result': 'fail', 'measurement': '', 'units': ''}]
+
self.results['metrics'] = self.metrics
def dict_to_json(self):