-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix podman --noout to suppress all output #16518
Conversation
Podman --noout was not suppressing output from commands that do not create the podman engine. Now, podman --noout properly suppresses output from every command. Fixes: containers#16201 Signed-off-by: Ashley Cui <[email protected]>
Little background: Commands that do not create the podman engine do not run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One nit, not a blocker. Also, while learning about --nout
, I found this in podman.1.md
:
Redirect stdout to /dev/null. This command will prevent all stdout from the Podman command. The --noout option will not block stderr or stdout from containers.
(emphasis mine). Should be option
, not command. And the phrasing is clumsy, could be collapsed to "from the Podman command but will not block ...". Again, only if you need to re-push for other reasons.
@@ -232,4 +232,10 @@ See 'podman version --help'" "podman version --remote" | |||
is "$output" "Setting --log-level and --debug is not allowed" | |||
} | |||
|
|||
# Tests --noout for commands that do not enter the engine | |||
@test "podman --noout properly supresses output" { | |||
run_podman --noout system connection ls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong indentation, but not worth re-pushing for. (If you need to re-push for any reason, though, please fix it)
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ashley-cui, edsantiago The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
Podman --noout was not suppressing output from commands that do not create the podman engine. Now, podman --noout properly suppresses output from every command.
Fixes: #16201
Signed-off-by: Ashley Cui [email protected]
Does this PR introduce a user-facing change?