8 orderfiles
= glob
.glob(testdir
+ '/*.tests')
10 # wee. just be glad I didn't make this one gigantic nested listcomp.
11 # anyway, this builds a once-nested list of files to test.
14 files
= [open(fn
) for fn
in orderfiles
]
16 #create prelim list of lists of files!
17 files
= [f
.readlines() for f
in files
]
19 #shwack newlines and filter out empties!
20 files
= [filter(None, [fn
.strip() for fn
in fs
]) for fs
in files
]
23 files
= [[testdir
+ '/' + fn
.strip() for fn
in fs
] for fs
in files
]
25 print "Will run these tests:", files
29 for testlist
in files
:
31 print "==========================="
32 print "running tests from testlist", orderfiles
[i
]
33 print "---------------------------"
37 print "running test", test
40 execfile(test
, globals().copy())
44 print "TEST FAILURE:", ei
[1]