mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-25 01:37:55 +00:00
TMPDIR is typically /tmp which is typically(*) a tmpfs.
This PR ignores $TMPDIR when $CI is defined, forcing all
e2e tests to set up one central working directory in /var/tmp
instead.
Also, lots of cleanup.
(*) For many years, up to and still including the time of
this PR, /tmp on Fedora CI VMs is actually NOT tmpfs,
it is just / (root). This is nonstandard and undesirable.
Efforts are underway to remove this special case.
Signed-off-by: Ed Santiago <santiago@redhat.com>
28 lines
2.2 KiB
Text
28 lines
2.2 KiB
Text
[Container]
|
|
Image=localhost/imagename
|
|
## assert-podman-args-key-val "--mount" "," "type=bind,source=/path/on/host,destination=/path/in/container"
|
|
Mount=type=bind,source=/path/on/host,destination=/path/in/container
|
|
## assert-podman-args-key-val "--mount" "," "type=bind,source=/path/on/host,dst=/path/in/container,relabel=shared"
|
|
Mount=type=bind,src=/path/on/host,dst=/path/in/container,relabel=shared
|
|
## assert-podman-args-key-val "--mount" "," "type=bind,source=/path/on/host,dst=/path/in/container,relabel=shared,U=true"
|
|
Mount=type=bind,src=/path/on/host,dst=/path/in/container,relabel=shared,U=true
|
|
## assert-podman-args-key-val "--mount" "," "type=volume,source=vol1,destination=/path/in/container,ro=true"
|
|
Mount=type=volume,source=vol1,destination=/path/in/container,ro=true
|
|
## assert-podman-args-key-val "--mount" "," "type=volume,source=systemd-vol2,destination=/path/in/container,ro=true"
|
|
## assert-key-is "Unit" "Requires" "vol2-volume.service"
|
|
## assert-key-is "Unit" "After" "vol2-volume.service"
|
|
Mount=type=volume,source=vol2.volume,destination=/path/in/container,ro=true
|
|
## assert-podman-args-key-val "--mount" "," "type=tmpfs,tmpfs-size=512M,destination=/path/in/container"
|
|
Mount=type=tmpfs,tmpfs-size=512M,destination=/path/in/container
|
|
## assert-podman-args-key-val "--mount" "," "type=image,source=fedora,destination=/fedora-image,rw=true"
|
|
Mount=type=image,source=fedora,destination=/fedora-image,rw=true
|
|
## assert-podman-args-key-val "--mount" "," "type=devpts,destination=/dev/pts"
|
|
Mount=type=devpts,destination=/dev/pts
|
|
## assert-podman-args-key-val-regex "--mount" "," "type=bind,source=.*/podman-e2e-.*/subtest-.*/quadlet/path/on/host,destination=/path/in/container"
|
|
Mount=type=bind,source=./path/on/host,destination=/path/in/container
|
|
## assert-podman-args-key-val "--mount" "," "type=volume,source=vol1,destination=/path/in/container,ro"
|
|
Mount=type=volume,source=vol1,destination=/path/in/container,ro
|
|
## assert-podman-args-key-val "--mount" "," "type=bind,source=/tmp,\"dst=/path,1\""
|
|
Mount=type=bind,src=/tmp,\"dst=/path,1\"
|
|
## assert-podman-args-key-val-regex "--mount" "," "type=bind,source=.*/podman-e2e-.*/subtest-.*/quadlet/src,destination=/dst/,idmap=uids=12-34-1;gids=56-78-1"
|
|
Mount=type=bind,source=./src/,destination=/dst/,idmap=uids=12-34-1;gids=56-78-1
|