# HG changeset patch # User Gregory Szorc # Date 1398013500 25200 # Node ID 592b3d2616d7ebf7ac8deafb65074d49826aa7a3 # Parent e478a9aab533b55e7dc1e55d94d8a9b9f846eaa5 run-tests: move checktools into TestRunner.run() diff -r e478a9aab533 -r 592b3d2616d7 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__':