mirror of https://github.com/fail2ban/fail2ban
don't check return code by dry-run: returns 256 on some python/setuptool versions.
parent
e3b061e94b
commit
f451cf34b3
|
@ -109,8 +109,8 @@ class SetupTest(unittest.TestCase):
|
||||||
supdbgout = ' >/dev/null 2>&1' if unittest.F2B.log_level >= logging.DEBUG else '' # HEAVYDEBUG
|
supdbgout = ' >/dev/null 2>&1' if unittest.F2B.log_level >= logging.DEBUG else '' # HEAVYDEBUG
|
||||||
try:
|
try:
|
||||||
# try dry-run:
|
# try dry-run:
|
||||||
self.assertEqual(os.system("%s %s --dry-run install --disable-2to3 --root=%s%s"
|
os.system("%s %s --dry-run install --disable-2to3 --root=%s%s"
|
||||||
% (sys.executable, self.setup , tmp, supdbgout)), 0)
|
% (sys.executable, self.setup , tmp, supdbgout))
|
||||||
# check nothing was created:
|
# check nothing was created:
|
||||||
self.assertTrue(not os.listdir(tmp))
|
self.assertTrue(not os.listdir(tmp))
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Reference in New Issue