Skip to content

Commit e8a09ab

Browse files
committed
Create isolated tmp dir for konflux e2e tests
Signed-off-by: Oliver Walsh <owalsh@redhat.com>
1 parent 98e07af commit e8a09ab

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.tekton/integration/tasks/test-vm-cmd.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,16 @@ spec:
111111
EXTRA_ARGS+=("-v" "/tmp/nvidia.yaml:/etc/cdi/nvidia.yaml")
112112
fi
113113
podman pull $TEST_IMAGE
114+
115+
TEMP_DIR=$(mktemp -d -p /var/tmp e2e-test.XXXXXX)
116+
trap 'rm -rf "$TEMP_DIR"' EXIT
117+
114118
podman run \
115119
--userns=keep-id \
116120
--security-opt label=disable \
117121
--security-opt unmask=/proc/* \
118122
--device /dev/net/tun \
119-
-v /var/tmp:/tmp \
123+
-v "${TEMP_DIR}":/tmp \
120124
\${EXTRA_ARGS[*]} \
121125
${PODMAN_ENV[*]} \
122126
$TEST_IMAGE $TEST_CMD

0 commit comments

Comments
 (0)