Skip to content

Defaulted ERRORPASS_TESTS in testall - #6442

Merged
olehermanse merged 1 commit into
cfengine:masterfrom
larsewi:testall-errorpass-default
Oct 26, 2026
Merged

olehermanse merged 1 commit into
cfengine:masterfrom
larsewi:testall-errorpass-default

Conversation

@larsewi

@larsewi larsewi commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

ERRORPASS_TESTS (added in 453630a) was only set when --tests= was passed. Without it, the unquoted test at testall:349 expanded to [ = 0 -a common = errorpass ], printing [: too many arguments for every test (see https://ci.cfengine.com/job/win-acceptance/326/console). It now defaults to 1 like the other test types.

Also added ERRORLOG_TESTS and ERRORPASS_TESTS to the enabled/disabled summary printed at the start of a run.

🤖 Generated with Claude Code

ERRORPASS_TESTS was only set when --tests= was passed, causing
"[: too many arguments" for every test otherwise. Also listed the
errorlog and errorpass test types in the run summary.

Changelog: None
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
@larsewi
larsewi marked this pull request as ready for review October 26, 2026 13:50
@larsewi
larsewi requested a review from olehermanse October 26, 2026 13:50
@olehermanse
olehermanse merged commit ccc4667 into cfengine:master Oct 26, 2026
12 checks passed
@olehermanse olehermanse added cherry-pick? Fixes which may need to be cherry-picked to LTS branches and removed cherry-pick? Fixes which may need to be cherry-picked to LTS branches labels Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants