diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-02-23 03:26:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-23 03:26:59 -0500 |
commit | 8b2432422fc188e15130c888a05e41fd881b8ca4 (patch) | |
tree | 403f0337bd61a09a10e05762e0935cc9bf0ad0d0 /test/system | |
parent | ccb96a2791fe9ae58a697bf1715600ecec8b246b (diff) | |
parent | c4dfbd58f5eb3851e031a5abfdbd9364e1779eb2 (diff) | |
download | podman-8b2432422fc188e15130c888a05e41fd881b8ca4.tar.gz podman-8b2432422fc188e15130c888a05e41fd881b8ca4.tar.bz2 podman-8b2432422fc188e15130c888a05e41fd881b8ca4.zip |
Merge pull request #13232 from rhatdan/volumes
Don't log errors on removing volumes inuse, if container --volumes-from
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/070-build.bats | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/system/070-build.bats b/test/system/070-build.bats index a95acd986..c963d8325 100644 --- a/test/system/070-build.bats +++ b/test/system/070-build.bats @@ -1016,6 +1016,27 @@ EOF run_podman build -t build_test $tmpdir/link } +@test "podman build --volumes-from conflict" { + rand_content=$(random_string 50) + + tmpdir=$PODMAN_TMPDIR/build-test + mkdir -p $tmpdir + dockerfile=$tmpdir/Dockerfile + cat >$dockerfile <<EOF +FROM $IMAGE +VOLUME /vol +EOF + + run_podman build -t build_test $tmpdir + is "$output" ".*COMMIT" "COMMIT seen in log" + + run_podman run -d --name test_ctr build_test top + run_podman run --rm --volumes-from test_ctr $IMAGE echo $rand_content + is "$output" "$rand_content" "No error should be thrown about volume in use" + + run_podman rmi -f build_test +} + function teardown() { # A timeout or other error in 'build' can leave behind stale images # that podman can't even see and which will cascade into subsequent |