test_case.run(**kwargs)
except KeyError:
test_case.run()
- if self.report_flag:
- test_case.push_to_db()
result = test_case.is_successful()
LOGGER.info("Test result:\n\n%s\n", test_case)
if self.clean_flag:
test_case.clean()
if self.push_flag:
test_case.publish_artifacts()
+ if self.report_flag:
+ test_case.push_to_db()
except ImportError:
LOGGER.exception("Cannot import module %s", run_dict['module'])
except AttributeError:
six.reraise(typ, value, traceback)
path = urllib.parse.urlparse(dst_s3_url).path.strip("/")
output_str = "\n"
+ self.details["links"] = []
for root, _, files in os.walk(self.dir_results):
for pub_file in files:
# pylint: disable=no-member
os.path.join(root, pub_file),
start=self.dir_results)))
dst_http_url = os.environ["HTTP_DST_URL"]
- output_str += "\n{}".format(
- os.path.join(dst_http_url, os.path.relpath(
- os.path.join(root, pub_file),
- start=self.dir_results)))
+ link = os.path.join(dst_http_url, os.path.relpath(
+ os.path.join(root, pub_file),
+ start=self.dir_results))
+ output_str += "\n{}".format(link)
+ self.details["links"].append(link)
self.__logger.info(
"All artifacts were successfully published: %s\n", output_str)
return TestCase.EX_OK