Thread (55 messages) flat view 55 messages, 8 authors, 2020-10-18

Re: [PATCH 1/3] test-lib: allow selecting tests by substring/regex with --run

From: Elijah Newren <hidden>
Date: 2020-10-13 17:23:47

On Tue, Oct 13, 2020 at 8:39 AM Taylor Blau [off-list ref] wrote:
On Mon, Oct 12, 2020 at 11:26:02PM +0000, Elijah Newren via GitGitGadget wrote:
quoted
diff --git a/t/README b/t/README
index 2adaf7c2d2..23639c5bcf 100644
--- a/t/README
+++ b/t/README
@@ -258,13 +258,13 @@ For an individual test suite --run could be used to specify that
 only some tests should be run or that some tests should be
 excluded from a run.

-The argument for --run is a list of individual test numbers or
-ranges with an optional negation prefix that define what tests in
-a test suite to include in the run.  A range is two numbers
-separated with a dash and matches a range of tests with both ends
-been included.  You may omit the first or the second number to
-mean "from the first test" or "up to the very last test"
-respectively.
+The argument for --run, <test-selector>, is a list of description
+substrings or regexes or individual test numbers or ranges with an
+optional negation prefix that define what tests in a test suite to
+include in the run.  A range is two numbers separated with a dash and
+matches a range of tests with both ends been included.  You may omit
+the first or the second number to mean "from the first test" or "up to
+the very last test" respectively.

 Optional prefix of '!' means that the test or a range of tests
 should be excluded from the run.
This piece of documentation looks to be now out of date; it mentions a
"test or range of tests", but that only covers a two of the now four
ways to describe a test.
Personally, I had read "test or range of tests" as general enough to
cover all the cases (I would have agreed that "test *number* or range
of tests" would sound out of date), and just left it.  However, if
there's something clearer, I'm happy to adopt it.  Do you have an
alternate wording suggestion?
The rest of the patch looks great to me; and I, too, am very excited
about it.

Thanks,
Taylor
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help