-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Print header for 'podman images' even with no images present #2879
Print header for 'podman images' even with no images present #2879
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mheon 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 assuming happy tests. |
@TomSweeneyRedHat well, I have to go into the tests anyways... Looks like a few of them are expected 0 lines back for |
a1d4f58
to
1dd54f1
Compare
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.
Code LGTM but some pre-existing tests need to be adjusted.
session := podmanTest.Podman([]string{"images"}) | ||
session.WaitWithDefaultTimeout() | ||
Expect(session.ExitCode()).To(Equal(0)) | ||
Expect(len(session.OutputToStringArray())).To(Equal(1)) |
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.
Some other tests are failing because they expect .To(Equal(0))
which doesn't hold anymore.
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.
Replacing -a
with -aq
where I can - quiet output still prints nothing when 0 images are present
Fixes containers#2877 Signed-off-by: Matthew Heon <[email protected]>
1dd54f1
to
ba4a1bb
Compare
LGTM |
/lgtm |
/lgtm |
Test |
/lgtm |
Fixes #2877