mirror of https://github.com/containers/podman.git
Merge pull request #21875 from Luap99/mount-test
test/system: fix mount external container test
This commit is contained in:
commit
98d1ad5a22
|
@ -249,13 +249,10 @@ EOF
|
||||||
reported_mountpoint=$(echo "$output" | awk '{print $2}')
|
reported_mountpoint=$(echo "$output" | awk '{print $2}')
|
||||||
is "$reported_mountpoint" "$mount_path" "mountpoint reported by 'podman mount'"
|
is "$reported_mountpoint" "$mount_path" "mountpoint reported by 'podman mount'"
|
||||||
|
|
||||||
# umount, and make sure files are gone
|
# umount, and make sure mountpoint no longer exists
|
||||||
run_podman umount $external_cid
|
run_podman umount $external_cid
|
||||||
if [ -d "$mount_path" ]; then
|
if findmnt "$mount_path" >/dev/null ; then
|
||||||
# Under VFS, mountpoint always exists even despite umount
|
die "'podman umount' did not umount $mount_path"
|
||||||
if [[ "$(podman_storage_driver)" != "vfs" ]]; then
|
|
||||||
die "'podman umount' did not umount $mount_path"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
buildah rm $external_cid
|
buildah rm $external_cid
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue