diff options
author | Valentin Rothberg <rothberg@redhat.com> | 2020-09-09 16:35:38 +0200 |
---|---|---|
committer | Valentin Rothberg <rothberg@redhat.com> | 2020-09-10 10:06:48 +0200 |
commit | 5c44ebf96e0a90a83cb115fa6fb7013b53dcebd8 (patch) | |
tree | b4919c9c776ece0b8fcbf7d20201fca379c9e623 /test/system | |
parent | 6b1a1fcc5cb92a9fd5800b0d1af44f26093a8153 (diff) | |
download | podman-5c44ebf96e0a90a83cb115fa6fb7013b53dcebd8.tar.gz podman-5c44ebf96e0a90a83cb115fa6fb7013b53dcebd8.tar.bz2 podman-5c44ebf96e0a90a83cb115fa6fb7013b53dcebd8.zip |
remote run: consult events for exit code
After attaching to a container, we wait for the container to finish and
return its exit code. Waiting for the container may not always succeed,
for instance, when the container has been force removed by another
process. In such case, we have to look at the *last* container-exit
event.
Also refactor the `ContainerRun` method a bit to return early on errors
and de-spaghetti the code.
Enable the remote-disabled system test.
Fixes: #7117
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/055-rm.bats | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/system/055-rm.bats b/test/system/055-rm.bats index 478ba0f20..c8475c3e9 100644 --- a/test/system/055-rm.bats +++ b/test/system/055-rm.bats @@ -44,8 +44,6 @@ load helpers # # See https://github.com/containers/podman/issues/3795 @test "podman rm -f" { - skip_if_remote "FIXME: pending #7117" - rand=$(random_string 30) ( sleep 3; run_podman rm -f $rand ) & run_podman 137 run --name $rand $IMAGE sleep 30 |