##// END OF EJS Templates
run-tests: allow run-tests.py to run tests outside current directory...
David R. MacIver -
r28180:2836a43c default
parent child Browse files
Show More
@@ -1506,7 +1506,7 b' class TestSuite(unittest.TestSuite):'
1506 1506 def get():
1507 1507 num_tests[0] += 1
1508 1508 if getattr(test, 'should_reload', False):
1509 return self._loadtest(test.bname, num_tests[0])
1509 return self._loadtest(test.path, num_tests[0])
1510 1510 return test
1511 1511 if not os.path.exists(test.path):
1512 1512 result.addSkip(test, "Doesn't exist")
@@ -718,3 +718,13 b' test support for --allow-slow-tests'
718 718 $ rt $HGTEST_RUN_TESTS_PURE --allow-slow-tests test-very-slow-test.t
719 719 .
720 720 # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
721
722 support for running a test outside the current directory
723 $ mkdir nonlocal
724 $ cat > nonlocal/test-is-not-here.t << EOF
725 > $ echo pass
726 > pass
727 > EOF
728 $ rt nonlocal/test-is-not-here.t
729 .
730 # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
General Comments 0
You need to be logged in to leave comments. Login now