From 900fe671c5e3095ec9a3bc31e1b0a7d1f8045116 Mon Sep 17 00:00:00 2001 From: Tibor Frank Date: Wed, 19 Sep 2018 10:55:53 +0200 Subject: [PATCH] CSIT-1288: Prepare data to be sent by Jenkins Change-Id: I0840883d52180d09f7de2bd9b0391a0db24105f5 Signed-off-by: Tibor Frank --- resources/tools/presentation/generator_alerts.py | 9 +++++---- resources/tools/presentation/input_data_parser.py | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/resources/tools/presentation/generator_alerts.py b/resources/tools/presentation/generator_alerts.py index 77302b6168..cbdb1fd07b 100644 --- a/resources/tools/presentation/generator_alerts.py +++ b/resources/tools/presentation/generator_alerts.py @@ -268,10 +268,11 @@ class Alerting(object): if zip_file: logging.info("Writing the file '{0}/{1}' ...". format(config["output-dir"], zip_file)) - execute_command("tar czvf {dir}/{zip} {dir}/{input}.*".format( - dir=config["output-dir"], - zip=zip_file, - input=config["output-file"])) + execute_command("tar czvf {dir}/{zip} --directory={dir} " + "{input}.txt {input}.html". + format(dir=config["output-dir"], + zip=zip_file, + input=config["output-file"])) else: raise AlertingError("Alert of type '{0}' is not implemented.". format(alert["type"])) diff --git a/resources/tools/presentation/input_data_parser.py b/resources/tools/presentation/input_data_parser.py index a35a454aa2..89e11bbe95 100644 --- a/resources/tools/presentation/input_data_parser.py +++ b/resources/tools/presentation/input_data_parser.py @@ -698,7 +698,7 @@ class ExecutionChecker(ResultVisitor): self._data["tests"][self._test_ID] = test_result logging.error("The test '{0}' has no or more than one " "multi-threading tags.".format(self._test_ID)) - logging.error("Tags: {0}".format(test_result["tags"])) + logging.debug("Tags: {0}".format(test_result["tags"])) return if test.status == "PASS" and ("NDRPDRDISC" in tags or -- 2.16.6