mirror of https://github.com/fail2ban/fail2ban
BF: (travis) relax the test for needed to be presented installed directories -- allow new
on travis scripts install into user's home by defaultpull/227/head
parent
6aed705f3d
commit
04bf9eceb6
|
@ -85,7 +85,11 @@ class SetupTest(unittest.TestCase):
|
||||||
got = strippath(sorted(glob('%s/*' % tmp)))
|
got = strippath(sorted(glob('%s/*' % tmp)))
|
||||||
need = ['etc', 'usr', 'var']
|
need = ['etc', 'usr', 'var']
|
||||||
|
|
||||||
if got != need:
|
# if anything is missing
|
||||||
|
if set(need).difference(got):
|
||||||
|
# below code was actually to print out not missing but
|
||||||
|
# rather files in 'excess'. Left in place in case we
|
||||||
|
# decide to revert to such more strict test
|
||||||
files = {}
|
files = {}
|
||||||
for missing in set(got).difference(need):
|
for missing in set(got).difference(need):
|
||||||
missing_full = os.path.join(tmp, missing)
|
missing_full = os.path.join(tmp, missing)
|
||||||
|
|
Loading…
Reference in New Issue