[PATCH 5 of 5 osx] tests: hint how to run slow tests when rejecting

Jun Wu quark at fb.com
Fri May 26 22:36:12 EDT 2017


Nice cleanup. Glad to see chg being included by default!

Excerpts from Augie Fackler's message of 2017-05-26 20:27:32 -0400:
> # HG changeset patch
> # User spectral <spectral at google.com>
> # Date 1495835574 25200
> #      Fri May 26 14:52:54 2017 -0700
> # Node ID e70c2a57c0d11f67f26e5966dee9daf1e384acb2
> # Parent  ffca36020b1032817a451e0fb752b80bbf55d84a
> 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",
>      ])
>  
> - at check("slow", "allow slow tests")
> + at 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
>    .


More information about the Mercurial-devel mailing list