runall.py: allow globs in --tests argument

This commit is contained in:
Denis Bilenko
2008-10-29 13:21:26 +06:00
parent 498d74c365
commit fe0fda9ec0

View File

@@ -96,6 +96,12 @@ def main():
options.reactors = enum_reactors() options.reactors = enum_reactors()
if options.tests is None: if options.tests is None:
options.tests = enum_tests() options.tests = enum_tests()
tests = []
for t in options.tests:
tests.extend(glob(t))
options.tests = tests
options.hubs = list(set(options.hubs) - set(options.ignore_hubs)) options.hubs = list(set(options.hubs) - set(options.ignore_hubs))
options.reactors = list(set(options.reactors) - set(options.ignore_reactors)) options.reactors = list(set(options.reactors) - set(options.ignore_reactors))
options.tests = list(set(options.tests) - set(options.ignore_tests)) options.tests = list(set(options.tests) - set(options.ignore_tests))