From 36f3c1745f26b586ce03df87ddcc7637817aefe4 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Wed, 22 May 2019 13:24:05 +0200 Subject: [PATCH] tests: loosen expectations for external info-zip tool In our test suite, we're verifying some archives by utilizing the unzip(1) program provided by info-zip.org. Due to changes to info-zip, our test case 59770 may fail on some systems as we expect it to spit out error messages in a specific format. Loosen those restrictions to make the test pass on more systems. --- test/zziptests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/zziptests.py b/test/zziptests.py index e3b2e33..ae9b2d8 100644 --- a/test/zziptests.py +++ b/test/zziptests.py @@ -1318,10 +1318,9 @@ class ZZipTest(unittest.TestCase): # run = shell("cd {tmpdir} && {exe} -o {filename}".format(**locals()), returncodes = [2]) - self.assertLess(len(run.output), 90) + self.assertLess(len(run.output), 101) self.assertLess(len(errors(run.errors)), 900) self.assertIn('test: mismatching "local" filename', run.errors) - self.assertIn('test: unknown compression method', run.errors) self.assertEqual(os.path.getsize(tmpdir+"/test"), 0) self.rm_testdir() def test_59771_zzipdir_big_CVE_2017_5977(self): -- 2.40.0