aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-09-19 10:55:53 +0200
committerTibor Frank <tifrank@cisco.com>2018-09-19 12:46:04 +0200
commit900fe671c5e3095ec9a3bc31e1b0a7d1f8045116 (patch)
tree8a79d4a83aee8ee4b38a70d9535c93884d2df764 /resources/tools
parent5ad9b364cbd45a0b25d73412b9777ac14df92b0a (diff)
CSIT-1288: Prepare data to be sent by Jenkins
Change-Id: I0840883d52180d09f7de2bd9b0391a0db24105f5 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools')
-rw-r--r--resources/tools/presentation/generator_alerts.py9
-rw-r--r--resources/tools/presentation/input_data_parser.py2
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