-
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
implement the exitcode when start a container with attach #7182
implement the exitcode when start a container with attach #7182
Conversation
bf100c9
to
ee36434
Compare
Could you add a test for this? |
119e65e
to
fa0db2d
Compare
LGTM |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mheon, zhangguanzhang 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 |
e2e or both. |
test/e2e/start_test.go
Outdated
session.WaitWithDefaultTimeout() | ||
Expect(session.ExitCode()).To(Equal(0)) | ||
cid := session.OutputToString() | ||
session = podmanTest.Podman([]string{"start", "-a", cid}) |
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.
nit/personal bias: I know it's not followed stringently, but I prefer that the full option to be spelled out in the test so there's no doubt what's being run.
session = podmanTest.Podman([]string{"start", "-a", cid}) | |
session = podmanTest.Podman([]string{"start", "--attach", cid}) |
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.
I will change it
Signed-off-by: zhangguanzhang <[email protected]>
fa0db2d
to
a5a0ba9
Compare
LGTM |
/lgtm |
/hold cancel |
Signed-off-by: zhangguanzhang [email protected]
Fixes: #7150
will be ok if use the docker
before and after fix