mirror of https://github.com/containers/podman.git
system tests: runlabel: use podman-under-test
I have no idea what this usage means, but the test fails on a system with no /usr/bin/podman ... and that suggests to me that the test is broken, in that it's been using /usr/bin/podman instead of the $PODMAN we're testing. Solution: 'podman', not '/usr/bin/podman'. Per @Luap99, podman will replace the string 'podman' with /proc/self/exe Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
parent
9062dede65
commit
fdc9ca076b
|
|
@ -12,7 +12,7 @@ load helpers
|
|||
rand3=$(random_string 30)
|
||||
cat >$containerfile <<EOF
|
||||
FROM $IMAGE
|
||||
LABEL INSTALL /usr/bin/podman run -t -i --rm \\\${OPT1} --privileged -v /:/host --net=host --ipc=host --pid=host -e HOST=/host -e NAME=\\\${NAME} -e IMAGE=\\\${IMAGE} -e CONFDIR=/etc/\\\${NAME} -e LOGDIR=/var/log/\\\${NAME} -e DATADIR=/var/lib/\\\${NAME} \\\${IMAGE} \\\${OPT2} /bin/install.sh \\\${OPT3}
|
||||
LABEL INSTALL podman run -t -i --rm \\\${OPT1} --privileged -v /:/host --net=host --ipc=host --pid=host -e HOST=/host -e NAME=\\\${NAME} -e IMAGE=\\\${IMAGE} -e CONFDIR=/etc/\\\${NAME} -e LOGDIR=/var/log/\\\${NAME} -e DATADIR=/var/lib/\\\${NAME} \\\${IMAGE} \\\${OPT2} /bin/install.sh \\\${OPT3}
|
||||
EOF
|
||||
|
||||
run_podman build -t runlabel_image $tmpdir
|
||||
|
|
|
|||
Loading…
Reference in New Issue