Commit f708b1a1 by markotibold

made it possible to pass args to runtests to specify the Testcase, or more…

made it possible to pass args to runtests to specify the Testcase, or more specifically the mtest_method to run.
parent a336f091
......@@ -27,7 +27,11 @@ def main():
failures = TestRunner(['djangorestframework'])
else:
test_runner = TestRunner()
failures = test_runner.run_tests(['djangorestframework'])
if len(sys.argv) > 1:
test_case = '.' + sys.argv[1]
else:
test_case = ''
failures = test_runner.run_tests(['djangorestframework' + test_case])
sys.exit(failures)
......
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