X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Fpresentation%2Finput_data_files.py;h=262c6a0a63bb228a498ea3e2a58907018c75a174;hp=d90f113edb757169ce37cd7364d6dfbe09e7fa0c;hb=9c38db0a5c7721c1193aebc60e9d3c5e3a351310;hpb=b55e3999a15c04b77039e1df2946d8ba02088de4 diff --git a/resources/tools/presentation/input_data_files.py b/resources/tools/presentation/input_data_files.py index d90f113edb..262c6a0a63 100644 --- a/resources/tools/presentation/input_data_files.py +++ b/resources/tools/presentation/input_data_files.py @@ -16,7 +16,6 @@ Download all data. """ import re -import logging from os import rename, mkdir from os.path import join @@ -168,7 +167,7 @@ def download_and_unzip_data_file(spec, job, build, pid, log): elif job.startswith("hc2vpp-"): url = spec.environment["urls"]["URL[JENKINS,HC]"] elif job.startswith("intel-dnv-"): - url = spec.environment["urls"]["URL[VIRL,DNV]"] + url = spec.environment["urls"]["URL[VIRL,DNV]"].format(release=job[-4:]) else: raise PresentationError("No url defined for the job '{}'.". format(job)) @@ -182,13 +181,9 @@ def download_and_unzip_data_file(spec, job, build, pid, log): 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