Mercurial > public > mercurial-scm > hg-stable
diff tests/test-run-tests.t @ 34270:1533371769b5
tests: add support for listing tests to run in a file
This will make it easier for us to run the tests in the python3
whitelist in buildbot.
author | Augie Fackler <augie@google.com> |
---|---|
date | Mon, 18 Sep 2017 17:11:32 -0400 |
parents | 40313c63da87 |
children | 8bce3e51b101 |
line wrap: on
line diff
--- a/tests/test-run-tests.t Mon Sep 18 15:34:50 2017 -0400 +++ b/tests/test-run-tests.t Mon Sep 18 17:11:32 2017 -0400 @@ -981,6 +981,19 @@ python hash seed: * (glob) [1] +Ensure that --test-list causes only the tests listed in that file to +be executed. + $ echo test-success.t >> onlytest + $ rt --test-list=onlytest + . + # Ran 1 tests, 0 skipped, 0 failed. + $ echo test-bogus.t >> anothertest + $ rt --test-list=onlytest --test-list=anothertest + s. + Skipped test-bogus.t: Doesn't exist + # Ran 1 tests, 1 skipped, 0 failed. + $ rm onlytest anothertest + test for --json ==================