diff options
author | Martin Klozik <martinx.klozik@intel.com> | 2017-06-09 07:30:44 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-06-09 07:30:44 +0000 |
commit | 5fe9089057bf23fd7ff312779d928cc9932fd38b (patch) | |
tree | a065807fae088fff9e1089611b37f882eb07d3fb /testcases/integration.py | |
parent | 80c9f96f5e60ee6a2a93494a0aae82014c2311b6 (diff) | |
parent | de6fc4b670fc42fc96f27f375fbcf7a099629434 (diff) |
Merge "tests: Improvement of step driven testcases"
Diffstat (limited to 'testcases/integration.py')
-rw-r--r-- | testcases/integration.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/testcases/integration.py b/testcases/integration.py index f2a5fecf..f87a8ee2 100644 --- a/testcases/integration.py +++ b/testcases/integration.py @@ -1,4 +1,4 @@ -# Copyright 2015-2016 Intel Corporation. +# Copyright 2015-2017 Intel Corporation. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -36,10 +36,13 @@ class IntegrationTestCase(TestCase): """ Report test results """ if self.test: - results = OrderedDict() - results['status'] = 'OK' if self._step_status['status'] else 'FAILED' - results['details'] = self._step_status['details'] - TestCase.write_result_to_file([results], self._output_file) + tmp_results = OrderedDict() + tmp_results['status'] = 'OK' if self._step_status['status'] else 'FAILED' + tmp_results['details'] = self._step_status['details'] + self._tc_results = [tmp_results] + + super(IntegrationTestCase, self).run_report() + self.step_report_status("Test '{}'".format(self.name), self._step_status['status']) # inform vsperf about testcase failure if not self._step_status['status']: |