Skip to content

Add -v flag to atf-check - #205

Merged
ngie-eign merged 1 commit into
freebsd:masterfrom
holmuk:atf-check-issue-104
Nov 6, 2026
Merged

ngie-eign merged 1 commit into
freebsd:masterfrom
holmuk:atf-check-issue-104

Conversation

@holmuk

@holmuk holmuk commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

This PR adds -v flag to atf-check to display captured stdout/stderr even when all checks succeed. When combined with -r, it displays output from each attempt.

A short option was chosen to match the existing cmd interface (-s, -o, etc.). Adding a long option (--verbose) would require introducing long-option parsing, so I decided not to do so even though the issue title suggested use of a long option.

Several test cases were added for the new flag.

Also, the atf-check(1) manual now documents -v.

Resolves #104


GPT 6-Astra was used to research the existing code, to adjust the man page, and also to suggest how to write tests

@ngie-eign ngie-eign left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this contribution assisted by coding agents? If so, could that please be documented in the commit?
Thank you!

Comment thread atf-sh/atf-check_test.sh Resolved
Comment thread atf-sh/atf-check_test.sh Resolved
@ngie-eign ngie-eign closed this Nov 5, 2026
@ngie-eign ngie-eign reopened this Nov 5, 2026
@holmuk
holmuk force-pushed the atf-check-issue-104 branch 2 times, most recently from 7ec8f5f to b4d9c6a Compare November 5, 2026 14:19
Comment thread atf-sh/atf-check.1 Resolved
Comment thread atf-sh/atf-check.1 Resolved
Comment thread atf-sh/atf-check_test.sh Resolved
The -v flag of atf-check can be used to display captured
stdout and stderr even when all checks succeed. This commit also
document the flag and add tests for successful checks, failures,
and retries.

Signed-off-by: Pavel Grakhov <altogetherx@gmail.com>
Assisted-by: Codex (GPT-6 Luna)
Closes freebsd#104
@holmuk
holmuk force-pushed the atf-check-issue-104 branch from b4d9c6a to 6c458d9 Compare November 6, 2026 07:07
@ngie-eign
ngie-eign merged commit 1f18330 into freebsd:master Nov 6, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --verbose flag to atf-check

2 participants