changeset 32474:c2b7fb580794

tests: hint how to run slow tests when rejecting
author Kyle Lippincott <spectral@google.com>
date Fri, 26 May 2017 14:52:54 -0700
parents 7a7c3369ee26
children 1d70ec85ae00
files tests/hghave.py tests/test-run-tests.t
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/tests/hghave.py	Fri May 26 13:24:07 2017 -0700
+++ b/tests/hghave.py	Fri May 26 14:52:54 2017 -0700
@@ -605,7 +605,7 @@
         os.environ.get("HGTEST_RUN_TESTS_PURE") == "--pure",
     ])
 
-@check("slow", "allow slow tests")
+@check("slow", "allow slow tests (use --allow-slow-tests)")
 def has_slow():
     return os.environ.get('HGTEST_SLOW') == 'slow'
 
--- a/tests/test-run-tests.t	Fri May 26 13:24:07 2017 -0700
+++ b/tests/test-run-tests.t	Fri May 26 14:52:54 2017 -0700
@@ -555,7 +555,7 @@
   > cat test-timeout.t >> test-slow-timeout.t
   $ rt --timeout=1 --slowtimeout=3 test-timeout.t test-slow-timeout.t
   st
-  Skipped test-slow-timeout.t: missing feature: allow slow tests
+  Skipped test-slow-timeout.t: missing feature: allow slow tests (use --allow-slow-tests)
   Failed test-timeout.t: timed out
   # Ran 1 tests, 1 skipped, 0 warned, 1 failed.
   python hash seed: * (glob)
@@ -852,7 +852,7 @@
   > EOF
   $ rt test-very-slow-test.t
   s
-  Skipped test-very-slow-test.t: missing feature: allow slow tests
+  Skipped test-very-slow-test.t: missing feature: allow slow tests (use --allow-slow-tests)
   # Ran 0 tests, 1 skipped, 0 warned, 0 failed.
   $ rt $HGTEST_RUN_TESTS_PURE --allow-slow-tests test-very-slow-test.t
   .