# HG changeset patch # User Kyle Lippincott # Date 2017-05-26 21:52:54 # Node ID c2b7fb580794ccbe21fa8c47f493eff6e9431fee # Parent 7a7c3369ee2690dcb100454fce5f098d9680beda tests: hint how to run slow tests when rejecting diff --git a/tests/hghave.py b/tests/hghave.py --- a/tests/hghave.py +++ b/tests/hghave.py @@ -605,7 +605,7 @@ def has_pure(): 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' diff --git a/tests/test-run-tests.t b/tests/test-run-tests.t --- a/tests/test-run-tests.t +++ b/tests/test-run-tests.t @@ -555,7 +555,7 @@ timeouts > 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 @@ test support for --allow-slow-tests > 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 .