mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: (travis) relax the test for needed to be presented installed directories -- allow new
on travis scripts install into user's home by default
This commit is contained in:
parent
6aed705f3d
commit
04bf9eceb6
1 changed files with 5 additions and 1 deletions
|
|
@ -85,7 +85,11 @@ class SetupTest(unittest.TestCase):
|
|||
got = strippath(sorted(glob('%s/*' % tmp)))
|
||||
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 = {}
|
||||
for missing in set(got).difference(need):
|
||||
missing_full = os.path.join(tmp, missing)
|
||||
|
|
|
|||
Loading…
Reference in a new issue