Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-1078: Optimize input data files download and processing
[csit.git]
/
resources
/
tools
/
presentation
/
input_data_files.py
diff --git
a/resources/tools/presentation/input_data_files.py
b/resources/tools/presentation/input_data_files.py
index
24dc3a5
..
9e0cfa6
100644
(file)
--- a/
resources/tools/presentation/input_data_files.py
+++ b/
resources/tools/presentation/input_data_files.py
@@
-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])
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
return _unzip_file(spec, job, build)
else:
return False