Commit b49c90b2 authored by Tom Niget's avatar Tom Niget

Fix -o flag for test_runner

parent f368032a
......@@ -66,8 +66,6 @@ def run_test(path, quiet=True):
if quiet:
sys.stdout = open(path.with_suffix(".out"), 'w')
sys.stderr = open(path.with_suffix(".err"), 'w')
if args.only and path.stem not in args.only:
return TestStatus.SKIPPED
print(path.name)
if path.name.startswith('_'):
print("Skipping")
......@@ -112,6 +110,8 @@ signal.signal(signal.SIGINT, sigint_handler)
def run_tests():
tests = sorted(Path('tests').glob('*.py'))
if args.only:
tests = [p for p in tests if p.stem in args.only]
if args.verbose:
for path in tests:
run_test(path, False)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment