From 00aa43d267244bf634faee8fe8a9f52ed8b6b1ff Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Tue, 15 Feb 2022 16:25:10 -0500 Subject: fix missing documentation for testsuite option in test.json stdout line matching supports count since commit 66d62a224e92c41d6012dc6c23912a965da4da8f to fail if certain output is present (count: 0) but it was never documented in the contribution guidelines. --- docs/markdown/Contributing.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/markdown/Contributing.md b/docs/markdown/Contributing.md index 0fd6606..3340b5c 100644 --- a/docs/markdown/Contributing.md +++ b/docs/markdown/Contributing.md @@ -387,6 +387,7 @@ Each dict contains the following keys: - `line` - `match` (optional) +- `count` (optional) Each item in the list is matched, in order, against the remaining actual stdout lines, after any previous matches. If the actual stdout @@ -401,6 +402,10 @@ matched: | `literal` | Literal match (default) | | `re` | regex match | +The `count` element determines how many times the line is expected, and allowed, +to be in the output. If unspecified, it must appear "any number of times, but at +least once". + #### skip_on_env The `skip_on_env` key can be used to specify a list of environment variables. If -- cgit v1.1