diff tests/run-tests.py @ 21373:e478a9aab533

run-tests: move test discovery into TestRunner.run()
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Apr 2014 10:04:15 -0700
parents 3a44787e50e2
children 592b3d2616d7
line wrap: on
line diff
--- a/tests/run-tests.py	Sun Apr 20 10:03:08 2014 -0700
+++ b/tests/run-tests.py	Sun Apr 20 10:04:15 2014 -0700
@@ -1014,8 +1014,9 @@
         self.abort = [False]
         self._createdfiles = []
 
-    def run(self, tests):
+    def run(self, args):
         """Run the test suite."""
+        tests = self.findtests(args)
         return self._run(tests)
 
     def _run(self, tests):
@@ -1461,9 +1462,7 @@
 
     runner.checktools()
 
-    tests = runner.findtests(args)
-
-    return runner.run(tests)
+    return runner.run(args)
 
 if __name__ == '__main__':
     sys.exit(main(sys.argv[1:]))