# HG changeset patch # User Gregory Szorc # Date 2014-04-20 17:05:00 # Node ID 592b3d2616d7ebf7ac8deafb65074d49826aa7a3 # Parent e478a9aab533b55e7dc1e55d94d8a9b9f846eaa5 run-tests: move checktools into TestRunner.run() diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -1016,6 +1016,7 @@ class TestRunner(object): def run(self, args): """Run the test suite.""" + self._checktools() tests = self.findtests(args) return self._run(tests) @@ -1440,7 +1441,7 @@ class TestRunner(object): 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 @@ def main(args, runner=None, parser=None) runner.options = options os.umask(022) - runner.checktools() - return runner.run(args) if __name__ == '__main__':