CSIT-1078: Optimize input data files download and processing 56/12556/1
authorTibor Frank <tifrank@cisco.com>
Mon, 14 May 2018 07:00:52 +0000 (09:00 +0200)
committerTibor Frank <tifrank@cisco.com>
Mon, 14 May 2018 07:00:52 +0000 (09:00 +0200)
Change-Id: I3fa3c09bc485416e6d2be02fac296d83da16e0d7
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/input_data_files.py

index 24dc3a5..9e0cfa6 100644 (file)
@@ -207,8 +207,8 @@ def download_and_unzip_data_file(spec, job, build):
             execute_command("gzip --keep {0}".format(new_name[:-3]))
         spec.set_input_file_name(job, build["build"], new_name[:-3])
 
-    if spec.input["file-name"].endswith(".zip"):
-        if is_zipfile(file_name):
+    if new_name.endswith(".zip"):
+        if is_zipfile(new_name):
             return _unzip_file(spec, job, build)
         else:
             return False

©2016 FD.io a Linux Foundation Collaborative Project. All Rights Reserved.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our privacy policy and terms of use.