##// END OF EJS Templates
run-tests: move checktools into TestRunner.run()
Gregory Szorc -
r21374:592b3d26 default
parent child Browse files
Show More
@@ -1016,6 +1016,7 b' class TestRunner(object):'
1016
1016
1017 def run(self, args):
1017 def run(self, args):
1018 """Run the test suite."""
1018 """Run the test suite."""
1019 self._checktools()
1019 tests = self.findtests(args)
1020 tests = self.findtests(args)
1020 return self._run(tests)
1021 return self._run(tests)
1021
1022
@@ -1440,7 +1441,7 b' class TestRunner(object):'
1440 return name
1441 return name
1441 return None
1442 return None
1442
1443
1443 def checktools(self):
1444 def _checktools(self):
1444 # Before we go any further, check for pre-requisite tools
1445 # Before we go any further, check for pre-requisite tools
1445 # stuff from coreutils (cat, rm, etc) are not tested
1446 # stuff from coreutils (cat, rm, etc) are not tested
1446 for p in self.REQUIREDTOOLS:
1447 for p in self.REQUIREDTOOLS:
@@ -1460,8 +1461,6 b' def main(args, runner=None, parser=None)'
1460 runner.options = options
1461 runner.options = options
1461 os.umask(022)
1462 os.umask(022)
1462
1463
1463 runner.checktools()
1464
1465 return runner.run(args)
1464 return runner.run(args)
1466
1465
1467 if __name__ == '__main__':
1466 if __name__ == '__main__':
General Comments 0
You need to be logged in to leave comments. Login now