mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-05-25 19:50:11 +08:00
recursive search for target test files in test summary python script
This commit is contained in:
@ -121,7 +121,7 @@ if __name__ == '__main__':
|
|||||||
targets_dir = sys.argv[1]
|
targets_dir = sys.argv[1]
|
||||||
else:
|
else:
|
||||||
targets_dir = './'
|
targets_dir = './'
|
||||||
targets = list(map(lambda x: x.replace('\\', '/'), glob(targets_dir + '*.test*')))
|
targets = list(map(lambda x: x.replace('\\', '/'), glob(targets_dir + '**/*.test*', recursive=True)))
|
||||||
if len(targets) == 0:
|
if len(targets) == 0:
|
||||||
raise Exception("No *.testpass or *.testfail files found in '%s'" % targets_dir)
|
raise Exception("No *.testpass or *.testfail files found in '%s'" % targets_dir)
|
||||||
uts.set_targets(targets)
|
uts.set_targets(targets)
|
||||||
|
Reference in New Issue
Block a user