##// END OF EJS Templates
tests: hint how to run slow tests when rejecting
Kyle Lippincott -
r32473:c2b7fb58 default
parent child Browse files
Show More
@@ -605,7 +605,7 b' def has_pure():'
605 os.environ.get("HGTEST_RUN_TESTS_PURE") == "--pure",
605 os.environ.get("HGTEST_RUN_TESTS_PURE") == "--pure",
606 ])
606 ])
607
607
608 @check("slow", "allow slow tests")
608 @check("slow", "allow slow tests (use --allow-slow-tests)")
609 def has_slow():
609 def has_slow():
610 return os.environ.get('HGTEST_SLOW') == 'slow'
610 return os.environ.get('HGTEST_SLOW') == 'slow'
611
611
@@ -555,7 +555,7 b' timeouts'
555 > cat test-timeout.t >> test-slow-timeout.t
555 > cat test-timeout.t >> test-slow-timeout.t
556 $ rt --timeout=1 --slowtimeout=3 test-timeout.t test-slow-timeout.t
556 $ rt --timeout=1 --slowtimeout=3 test-timeout.t test-slow-timeout.t
557 st
557 st
558 Skipped test-slow-timeout.t: missing feature: allow slow tests
558 Skipped test-slow-timeout.t: missing feature: allow slow tests (use --allow-slow-tests)
559 Failed test-timeout.t: timed out
559 Failed test-timeout.t: timed out
560 # Ran 1 tests, 1 skipped, 0 warned, 1 failed.
560 # Ran 1 tests, 1 skipped, 0 warned, 1 failed.
561 python hash seed: * (glob)
561 python hash seed: * (glob)
@@ -852,7 +852,7 b' test support for --allow-slow-tests'
852 > EOF
852 > EOF
853 $ rt test-very-slow-test.t
853 $ rt test-very-slow-test.t
854 s
854 s
855 Skipped test-very-slow-test.t: missing feature: allow slow tests
855 Skipped test-very-slow-test.t: missing feature: allow slow tests (use --allow-slow-tests)
856 # Ran 0 tests, 1 skipped, 0 warned, 0 failed.
856 # Ran 0 tests, 1 skipped, 0 warned, 0 failed.
857 $ rt $HGTEST_RUN_TESTS_PURE --allow-slow-tests test-very-slow-test.t
857 $ rt $HGTEST_RUN_TESTS_PURE --allow-slow-tests test-very-slow-test.t
858 .
858 .
General Comments 0
You need to be logged in to leave comments. Login now