aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/input_data_files.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-11-20 12:05:32 +0100
committerTibor Frank <tifrank@cisco.com>2018-11-20 14:26:08 +0100
commit77175cdd458e9c9fa9020d73d2f0f0c9b6e7eeb6 (patch)
tree690f2ebc25cdddaadc1e5d20a1bd11f4b0c79d3b /resources/tools/presentation/input_data_files.py
parent153bf776309870aa615f8217c3b438aad199f5ed (diff)
CSIT-1351: Add Denverton results to report
Change-Id: I0e92c183fe972ce9fe8e7b3d3fca6e6bb86ddd54 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/input_data_files.py')
-rw-r--r--resources/tools/presentation/input_data_files.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/tools/presentation/input_data_files.py b/resources/tools/presentation/input_data_files.py
index cde6d1acc4..da745ccdf9 100644
--- a/resources/tools/presentation/input_data_files.py
+++ b/resources/tools/presentation/input_data_files.py
@@ -16,6 +16,7 @@ Download all data.
"""
import re
+import logging
from os import rename, mkdir
from os.path import join
@@ -166,20 +167,29 @@ def download_and_unzip_data_file(spec, job, build, pid, log):
return False
elif job.startswith("hc2vpp-"):
url = spec.environment["urls"]["URL[JENKINS,HC]"]
+ elif job.startswith("intel-dnv-"):
+ url = spec.environment["urls"]["URL[VIRL,DNV]"]
else:
raise PresentationError("No url defined for the job '{}'.".
format(job))
file_name = spec.input["file-name"]
full_name = spec.input["download-path"]. \
format(job=job, build=build["build"], filename=file_name)
+ if job.startswith("intel-dnv-"):
+ full_name = ""
url = "{0}/{1}".format(url, full_name)
new_name = join(spec.environment["paths"]["DIR[WORKING,DATA]"],
"{job}{sep}{build}{sep}{name}".
format(job=job, sep=SEPARATOR, build=build["build"],
name=file_name))
+
+ logging.info(new_name)
+
# Download the file from the defined source (Jenkins, logs.fd.io):
success = _download_file(url, new_name, log)
+ logging.info("{}: {}".format(url, success))
+
if success and new_name.endswith(".zip"):
if not is_zipfile(new_name):
success = False