7 orderfiles
= glob
.glob(testdir
+ '/*.tests')
9 # wee. just be glad I didn't make this one gigantic nested listcomp.
10 # anyway, this builds a once-nested list of files to test.
13 files
= [open(fn
) for fn
in orderfiles
]
15 #create prelim list of lists of files!
16 files
= [f
.readlines() for f
in files
]
18 #shwack newlines and filter out empties!
19 files
= [filter(None, [fn
.strip() for fn
in fs
]) for fs
in files
]
22 files
= [[testdir
+ '/' + fn
.strip() for fn
in fs
] for fs
in files
]
24 print "Will run these tests:", files
28 for testlist
in files
:
30 print "==========================="
31 print "running tests from testlist", orderfiles
[i
]
32 print "---------------------------"
36 print "running test", test
39 execfile(test
, globals().copy())
43 print "TEST FAILURE:", ei
[1]