Issue #25220, libregrtest: Pass directly ns to runtest()

* Remove runtest_ns(): pass directly ns to runtest().
* Create also Regrtest.rerun_failed_tests() method.
* Inline again Regrtest.run_test(): it's no more justified to have a method
This commit is contained in:
Victor Stinner 2015-09-30 02:32:11 +02:00
parent a204502dbf
commit 6f20a2e01f
3 changed files with 44 additions and 45 deletions

View file

@ -13,7 +13,7 @@ except ImportError:
print("Multiprocess option requires thread support")
sys.exit(2)
from test.libregrtest.runtest import runtest_ns, INTERRUPTED, CHILD_ERROR
from test.libregrtest.runtest import runtest, INTERRUPTED, CHILD_ERROR
from test.libregrtest.setup import setup_tests
@ -62,10 +62,7 @@ def run_tests_slave(slaveargs):
setup_tests(ns)
try:
result = runtest_ns(testname, ns.verbose, ns,
output_on_failure=ns.verbose3,
failfast=ns.failfast,
match_tests=ns.match_tests)
result = runtest(ns, testname)
except KeyboardInterrupt:
result = INTERRUPTED, ''
except BaseException as e: