changeset 21374:592b3d2616d7

run-tests: move checktools into TestRunner.run()
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Apr 2014 10:05:00 -0700
parents e478a9aab533
children bd70dcb91af6
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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__':