BF: (travis) relax the test for needed to be presented installed directories -- allow new

on travis scripts install into user's home by default
pull/227/head
Yaroslav Halchenko 2013-05-12 23:42:57 -04:00
parent 6aed705f3d
commit 04bf9eceb6
1 changed files with 5 additions and 1 deletions

View File

@ -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)