Export test suite directory

This commit is contained in:
Ivan Kravets committed 2022-12-13 19:36:41 +02:00
1 parent 7bbfaab891
commit 4d4aec4f57
4 files changed
+19 -5

No files matched your search

+3 -3
View File
@@ -156,9 +156,6 @@ def cli( # pylint: disable=too-many-arguments,too-many-locals,redefined-builtin
runner.start(ctx)
print_suite_footer(test_suite)
# Reset custom project config
app.set_session_var("custom_project_conf", None)
stdout_report = TestReportFactory.new("stdout", test_result)
stdout_report.generate(verbose=verbose or list_tests)
@@ -171,6 +168,9 @@ def cli( # pylint: disable=too-many-arguments,too-many-locals,redefined-builtin
custom_report = TestReportFactory.new(output_format, test_result)
custom_report.generate(output_path=output_path, verbose=True)
# Reset custom project config
app.set_session_var("custom_project_conf", None)
if test_result.is_errored or test_result.get_status_nums(TestStatus.FAILED):
raise exception.ReturnErrorCode(1)