diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-05-17 15:35:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 15:35:20 -0400 |
commit | f65d9309cbe8ccbacb64fc720d99d78c14ef4139 (patch) | |
tree | 7a933ec9abfab6f7dd7dec61dd6c7550f4c0451b /test/system/030-run.bats | |
parent | 0a3444613e5eed3322d2b44cdc94a5ab9678768b (diff) | |
parent | b75bb4665e1c4db2bb3b931af04c099deec0f666 (diff) | |
download | podman-f65d9309cbe8ccbacb64fc720d99d78c14ef4139.tar.gz podman-f65d9309cbe8ccbacb64fc720d99d78c14ef4139.tar.bz2 podman-f65d9309cbe8ccbacb64fc720d99d78c14ef4139.zip |
Merge pull request #10270 from rhatdan/mtab
Create the /etc/mtab file if does not exists
Diffstat (limited to 'test/system/030-run.bats')
-rw-r--r-- | test/system/030-run.bats | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 9a136ff13..e12c32ef5 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -690,4 +690,18 @@ json-file | f run_podman rm $cid } +@test "podman run no /etc/mtab " { + tmpdir=$PODMAN_TMPDIR/build-test + mkdir -p $tmpdir + + cat >$tmpdir/Dockerfile <<EOF +FROM $IMAGE +RUN rm /etc/mtab +EOF + expected="'/etc/mtab' -> '/proc/mounts'" + run_podman build -t nomtab $tmpdir + run_podman run --rm nomtab stat -c %N /etc/mtab + is "$output" "$expected" "/etc/mtab should be created" +} + # vim: filetype=sh |