summaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-01-18 10:30:08 -0500
committerGitHub <noreply@github.com>2022-01-18 10:30:08 -0500
commit0bbf8fa14035371cdc5bb04f5db51da8a8f94d48 (patch)
treecdf7ff6c61cd8b2ca914adea9fa70539f10e31f2 /hack
parent55ad6188b067ba6594819c318dd2ae92dea2f27e (diff)
parent471a4356bfc57e37218afa6e2db4e9a58e53032b (diff)
downloadpodman-0bbf8fa14035371cdc5bb04f5db51da8a8f94d48.tar.gz
podman-0bbf8fa14035371cdc5bb04f5db51da8a8f94d48.tar.bz2
podman-0bbf8fa14035371cdc5bb04f5db51da8a8f94d48.zip
Merge pull request #12797 from edsantiago/test_image_scp_sudo
Tests for podman image scp (the sudo form)
Diffstat (limited to 'hack')
-rwxr-xr-xhack/bats4
1 files changed, 4 insertions, 0 deletions
diff --git a/hack/bats b/hack/bats
index cd81a9c73..0776521f4 100755
--- a/hack/bats
+++ b/hack/bats
@@ -98,6 +98,9 @@ if [[ -z "$CONTAINERS_HELPER_BINARY_DIR" ]]; then
export CONTAINERS_HELPER_BINARY_DIR=$(pwd)/bin
fi
+# Used in 120-load test to identify rootless destination for podman image scp
+export PODMAN_ROOTLESS_USER=$(id -un)
+
# Root
if [ -z "$ROOTLESS_ONLY" ]; then
echo "# bats ${bats_filter[@]} $TESTS"
@@ -105,6 +108,7 @@ if [ -z "$ROOTLESS_ONLY" ]; then
--preserve-env=PODMAN_TEST_DEBUG \
--preserve-env=OCI_RUNTIME \
--preserve-env=CONTAINERS_HELPER_BINARY_DIR \
+ --preserve-env=PODMAN_ROOTLESS_USER \
bats "${bats_opts[@]}" "${bats_filter[@]}" $TESTS
rc=$?
fi