##// END OF EJS Templates
run-tests: move test discovery into TestRunner.run()
Gregory Szorc -
r21373:e478a9aa default
parent child Browse files
Show More
@@ -1014,8 +1014,9 b' class TestRunner(object):'
1014 self.abort = [False]
1014 self.abort = [False]
1015 self._createdfiles = []
1015 self._createdfiles = []
1016
1016
1017 def run(self, tests):
1017 def run(self, args):
1018 """Run the test suite."""
1018 """Run the test suite."""
1019 tests = self.findtests(args)
1019 return self._run(tests)
1020 return self._run(tests)
1020
1021
1021 def _run(self, tests):
1022 def _run(self, tests):
@@ -1461,9 +1462,7 b' def main(args, runner=None, parser=None)'
1461
1462
1462 runner.checktools()
1463 runner.checktools()
1463
1464
1464 tests = runner.findtests(args)
1465 return runner.run(args)
1465
1466 return runner.run(tests)
1467
1466
1468 if __name__ == '__main__':
1467 if __name__ == '__main__':
1469 sys.exit(main(sys.argv[1:]))
1468 sys.exit(main(sys.argv[1:]))
General Comments 0
You need to be logged in to leave comments. Login now