aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator
diff options
context:
space:
mode:
authorSteven Wright <sw3588@att.com>2019-04-11 17:40:44 +0000
committerGerrit Code Review <gerrit@onap.org>2019-04-11 17:40:44 +0000
commit005ca442b4818d5cf5eb53490105704674f5b145 (patch)
tree583a262bf4e8f50c4bbf1c2b0f97ac400af43046 /ice_validator
parent2282c6dcfd84f1176c7edb29b2d75537fb6fdd77 (diff)
parent7ee8ce0d0411c6f24172ac93a00c7aa4c60ba460 (diff)
Merge "[VVP] adding base test failure message to report"
Diffstat (limited to 'ice_validator')
-rw-r--r--ice_validator/tests/conftest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ice_validator/tests/conftest.py b/ice_validator/tests/conftest.py
index abb6f3a..88dc6b3 100644
--- a/ice_validator/tests/conftest.py
+++ b/ice_validator/tests/conftest.py
@@ -312,7 +312,6 @@ def pytest_runtest_makereport(item, call):
if outcome.get_result().when != "call":
return # only capture results of test cases themselves
result = TestResult(item, outcome)
- ALL_RESULTS.append(result)
if (
not item.config.option.continue_on_failure
and result.is_base_test
@@ -321,8 +320,12 @@ def pytest_runtest_makereport(item, call):
msg = "!!Base Test Failure!! Halting test suite execution...\n{}".format(
result.error_message
)
+ result.error_message = msg
+ ALL_RESULTS.append(result)
pytest.exit("{}\n{}\n{}".format(msg, result.files, result.test_case))
+ ALL_RESULTS.append(result)
+
def make_timestamp():
"""