run-tests: move checktools into TestRunner.run()
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 20 Apr 2014 10:05:00 -0700
changeset 21374 592b3d2616d7
parent 21373 e478a9aab533
child 21375 bd70dcb91af6
run-tests: move checktools into TestRunner.run()
tests/run-tests.py
--- a/tests/run-tests.py	Sun Apr 20 10:04:15 2014 -0700
+++ b/tests/run-tests.py	Sun Apr 20 10:05:00 2014 -0700
@@ -1016,6 +1016,7 @@
 
     def run(self, args):
         """Run the test suite."""
+        self._checktools()
         tests = self.findtests(args)
         return self._run(tests)
 
@@ -1440,7 +1441,7 @@
                 return name
         return None
 
-    def checktools(self):
+    def _checktools(self):
         # Before we go any further, check for pre-requisite tools
         # stuff from coreutils (cat, rm, etc) are not tested
         for p in self.REQUIREDTOOLS:
@@ -1460,8 +1461,6 @@
     runner.options = options
     os.umask(022)
 
-    runner.checktools()
-
     return runner.run(args)
 
 if __name__ == '__main__':