Skip to content

Commit b9a5e14

Browse files
committedJun 6, 2022
Accept args when running tests
1 parent 8961d4c commit b9a5e14

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed
 

‎runtests.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import os
44
import sys
@@ -17,10 +17,9 @@ def runtests(*args):
1717

1818
TestRunner = get_runner(settings)
1919
test_runner = TestRunner(verbosity=2, interactive=True, failfast=False)
20-
failures = test_runner.run_tests(args)
20+
failures = test_runner.run_tests(*args)
2121
sys.exit(failures)
2222

2323

2424
if __name__ == '__main__':
25-
# TODO: forward sys.argv?
26-
runtests()
25+
runtests(sys.argv[1:])

0 commit comments

Comments
 (0)
Please sign in to comment.