# download the file so that we won't try to
# re-download it.
open(subfile, 'a').close()
+ if not os.path.exists(subfile):
+ return None
+ if os.path.getsize(subfile) < 5:
+ return None
#
if into:
if not os.path.isdir(into):
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5977
file_url = self.url_CVE_2017_5977
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5977 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 2])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5977
file_url = self.url_CVE_2017_5977
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5977 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5977
file_url = self.url_CVE_2017_5977
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5977 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5977
file_url = self.url_CVE_2017_5977
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5977 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5977
file_url = self.url_CVE_2017_5977
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5977 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 255])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5977
file_url = self.url_CVE_2017_5977
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5977 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 163)
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5978
file_url = self.url_CVE_2017_5978
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5978 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 3])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5978
file_url = self.url_CVE_2017_5978
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5978 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5978
file_url = self.url_CVE_2017_5978
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5978 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5978
file_url = self.url_CVE_2017_5978
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5978 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,2])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5978
file_url = self.url_CVE_2017_5978
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5978 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [3])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5978
file_url = self.url_CVE_2017_5978
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5978 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 161)
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5979
file_url = self.url_CVE_2017_5979
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5979 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5979
file_url = self.url_CVE_2017_5979
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5979 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5979
file_url = self.url_CVE_2017_5979
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5979 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5979
file_url = self.url_CVE_2017_5979
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5979 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5979
file_url = self.url_CVE_2017_5979
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5979 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 255])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5979
file_url = self.url_CVE_2017_5979
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5979 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 155)
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5974
file_url = self.url_CVE_2017_5974
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5974 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 9])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5974
file_url = self.url_CVE_2017_5974
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5974 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5974
file_url = self.url_CVE_2017_5974
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5974 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5974
file_url = self.url_CVE_2017_5974
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5974 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5974
file_url = self.url_CVE_2017_5974
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5974 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 255])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5974
file_url = self.url_CVE_2017_5974
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5974 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 161)
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5975
file_url = self.url_CVE_2017_5975
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5975 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 2])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5975
file_url = self.url_CVE_2017_5975
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5975 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5975
file_url = self.url_CVE_2017_5975
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5975 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5975
file_url = self.url_CVE_2017_5975
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5975 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,2])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5975
file_url = self.url_CVE_2017_5975
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5975 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,3])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5975
file_url = self.url_CVE_2017_5975
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5975 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 151)
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5976
file_url = self.url_CVE_2017_5976
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5976 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 2])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5976
file_url = self.url_CVE_2017_5976
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5976 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5976
file_url = self.url_CVE_2017_5976
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5976 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5976
file_url = self.url_CVE_2017_5976
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5976 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5976
file_url = self.url_CVE_2017_5976
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5976 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 255])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5976
file_url = self.url_CVE_2017_5976
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5976 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 188)
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5980
file_url = self.url_CVE_2017_5980
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5980 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 2])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5980
file_url = self.url_CVE_2017_5980
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5980 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5980
file_url = self.url_CVE_2017_5980
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5980 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5980
file_url = self.url_CVE_2017_5980
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5980 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [2])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5980
file_url = self.url_CVE_2017_5980
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5980 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [3])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5980
file_url = self.url_CVE_2017_5980
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5980 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 155)
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5981
file_url = self.url_CVE_2017_5981
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5981 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 3])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5981
file_url = self.url_CVE_2017_5981
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5981 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5981
file_url = self.url_CVE_2017_5981
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5981 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5981
file_url = self.url_CVE_2017_5981
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5981 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,2])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5981
file_url = self.url_CVE_2017_5981
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5981 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,3])
tmpdir = self.testdir()
filename = self.zip_CVE_2017_5981
file_url = self.url_CVE_2017_5981
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2017_5981 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 157)
tmpdir = self.testdir()
filename = self.zip_CVE_2018_10
file_url = self.url_CVE_2018_10
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_10 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 9])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_10
file_url = self.url_CVE_2018_10
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_10 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_10
file_url = self.url_CVE_2018_10
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_10 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_10
file_url = self.url_CVE_2018_10
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_10 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,2])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_10
file_url = self.url_CVE_2018_10
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_10 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_10
file_url = self.url_CVE_2018_10
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_10 available: " + filename)
exe = self.bins("zzdir")
run = shell("cd {tmpdir} && ../{exe} {filename} ".format(**locals()),
returncodes = [1])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_10
file_url = self.url_CVE_2018_10
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_10 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 188)
tmpdir = self.testdir()
filename = self.zip_CVE_2018_11
file_url = self.url_CVE_2018_11
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_11 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 9])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_11
file_url = self.url_CVE_2018_11
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_11 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_11
file_url = self.url_CVE_2018_11
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_11 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_11
file_url = self.url_CVE_2018_11
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_11 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,2])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_11
file_url = self.url_CVE_2018_11
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_11 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_11
file_url = self.url_CVE_2018_11
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_11 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 280)
tmpdir = self.testdir()
filename = self.zip_CVE_2018_12
file_url = self.url_CVE_2018_12
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_12 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [2])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_12
file_url = self.url_CVE_2018_12
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_12 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_12
file_url = self.url_CVE_2018_12
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_12 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_12
file_url = self.url_CVE_2018_12
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_12 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,2])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_12
file_url = self.url_CVE_2018_12
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_12 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_12
file_url = self.url_CVE_2018_12
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_12 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 141)
tmpdir = self.testdir()
filename = self.zip_CVE_2018_14
file_url = self.url_CVE_2018_14
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_14 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_14
file_url = self.url_CVE_2018_14
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_14 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_14
file_url = self.url_CVE_2018_14
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_14 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_14
file_url = self.url_CVE_2018_14
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_14 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 2])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_14
file_url = self.url_CVE_2018_14
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_14 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_14
file_url = self.url_CVE_2018_14
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_14 available: " + filename)
exe = self.bins("zzdir")
run = shell("cd {tmpdir} && ../{exe} {filename} ".format(**locals()),
returncodes = [1])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_14
file_url = self.url_CVE_2018_14
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_14 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 56)
tmpdir = self.testdir()
filename = self.zip_CVE_2018_15
file_url = self.url_CVE_2018_15
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_15 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [2])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_15
file_url = self.url_CVE_2018_15
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_15 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_15
file_url = self.url_CVE_2018_15
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_15 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_15
file_url = self.url_CVE_2018_15
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_15 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,2])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_15
file_url = self.url_CVE_2018_15
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_15 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_15
file_url = self.url_CVE_2018_15
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_15 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 141)
tmpdir = self.testdir()
filename = self.zip_CVE_2018_16
file_url = self.url_CVE_2018_16
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_16 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 9])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_16
file_url = self.url_CVE_2018_16
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_16 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_16
file_url = self.url_CVE_2018_16
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_16 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_16
file_url = self.url_CVE_2018_16
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_16 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,2])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_16
file_url = self.url_CVE_2018_16
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_16 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_16
file_url = self.url_CVE_2018_16
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_16 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 124)
tmpdir = self.testdir()
filename = self.zip_CVE_2018_17
file_url = self.url_CVE_2018_17
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_17 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 9])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_17
file_url = self.url_CVE_2018_17
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_17 available: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_17
file_url = self.url_CVE_2018_17
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_17 available: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_17
file_url = self.url_CVE_2018_17
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_17 available: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,2])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_17
file_url = self.url_CVE_2018_17
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_17 available: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_17
file_url = self.url_CVE_2018_17
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_17 available: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, 360)
tmpdir = self.testdir()
filename = self.zip_CVE_2018_42
file_url = self.url_CVE_2018_42
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_42 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_42
file_url = self.url_CVE_2018_42
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_42 available: " + filename)
exe = self.bins("zzdir")
run = shell("{exe} {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_43
file_url = self.url_CVE_2018_43
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_43 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_43
file_url = self.url_CVE_2018_43
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_43 available: " + filename)
exe = self.bins("zzdir")
run = shell("{exe} {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
filename = self.zip_CVE_2018_27
file_url = self.url_CVE_2018_27
filesize = self.zip_CVE_2018_27_size
- download_raw(file_url, filename, tmpdir)
- if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
- if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)): self.skipTest("missing " + filename)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_27 available: " + filename)
+ if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)):
+ self.skipTest("zip for CVE_2018_27 is confidential: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 9])
filename = self.zip_CVE_2018_27
file_url = self.url_CVE_2018_27
filesize = self.zip_CVE_2018_27_size
- download_raw(file_url, filename, tmpdir)
- if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
- if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)): self.skipTest("missing " + filename)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_27 available: " + filename)
+ if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)):
+ self.skipTest("zip for CVE_2018_27 is confidential: " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
filename = self.zip_CVE_2018_27
file_url = self.url_CVE_2018_27
filesize = self.zip_CVE_2018_27_size
- download_raw(file_url, filename, tmpdir)
- if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
- if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)): self.skipTest("missing " + filename)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_27 available: " + filename)
+ if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)):
+ self.skipTest("zip for CVE_2018_27 is confidential: " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0])
filename = self.zip_CVE_2018_27
file_url = self.url_CVE_2018_27
filesize = self.zip_CVE_2018_27_size
- download_raw(file_url, filename, tmpdir)
- if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
- if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)): self.skipTest("missing " + filename)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_27 available: " + filename)
+ if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)):
+ self.skipTest("zip for CVE_2018_27 is confidential: " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0,2])
filename = self.zip_CVE_2018_27
file_url = self.url_CVE_2018_27
filesize = self.zip_CVE_2018_27_size
- download_raw(file_url, filename, tmpdir)
- if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
- if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)): self.skipTest("missing " + filename)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_27 available: " + filename)
+ if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)):
+ self.skipTest("zip for CVE_2018_27 is confidential: " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 3])
filename = self.zip_CVE_2018_27
file_url = self.url_CVE_2018_27
filesize = self.zip_CVE_2018_27_size
- download_raw(file_url, filename, tmpdir)
- if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
- if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)): self.skipTest("missing " + filename)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_27 available: " + filename)
+ if ((os.path.getsize(os.path.join(tmpdir, filename)) != filesize)):
+ self.skipTest("zip for CVE_2018_27 is confidential: " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
self.assertEqual(size, filesize) # 56
tmpdir = self.testdir()
filename = self.zip_CVE_2018_41
file_url = self.url_CVE_2018_41
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_41 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [0, 3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_41
file_url = self.url_CVE_2018_41
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_41 available: " + filename)
exe = self.bins("zzdir")
run = shell("{exe} {tmpdir}/{filename} ".format(**locals()),
returncodes = [1])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_39
file_url = self.url_CVE_2018_39
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_39 available: " + filename)
if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
tmpdir = self.testdir()
filename = self.zip_CVE_2018_39
file_url = self.url_CVE_2018_39
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_39 available: " + filename)
if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
exe = self.bins("unzzip-big")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
tmpdir = self.testdir()
filename = self.zip_CVE_2018_39
file_url = self.url_CVE_2018_39
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_39 available: " + filename)
if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
tmpdir = self.testdir()
filename = self.zip_CVE_2018_39
file_url = self.url_CVE_2018_39
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_39 available: " + filename)
if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
tmpdir = self.testdir()
filename = self.zip_CVE_2018_39
file_url = self.url_CVE_2018_39
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_39 available: " + filename)
if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
tmpdir = self.testdir()
filename = self.zip_CVE_2018_39
file_url = self.url_CVE_2018_39
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_39 available: " + filename)
if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
shell("ls -l {tmpdir}/{filename}".format(**locals()))
size = os.path.getsize(os.path.join(tmpdir, filename))
tmpdir = self.testdir()
filename = self.zip_CVE_2018_40
file_url = self.url_CVE_2018_40
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_40 available: " + filename)
exe = self.bins("unzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
returncodes = [3])
tmpdir = self.testdir()
filename = self.zip_CVE_2018_40
file_url = self.url_CVE_2018_40
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_40 available: " + filename)
if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
tmpdir = self.testdir()
filename = self.zip_CVE_2018_17828
file_url = self.url_CVE_2018_17828
- download_raw(file_url, filename, tmpdir)
+ if not download_raw(file_url, filename, tmpdir):
+ self.skipTest("no zip_CVE_2018_40 available: " + filename)
if not os.path.isfile(os.path.join(tmpdir, filename)): self.skipTest("missing " + filename)
exe = self.bins("unzzip-mem")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),