From c1ad54f89a91d5e7b292c21a71edc6fa10e3eca6 Mon Sep 17 00:00:00 2001 From: Ricardo Branco Date: Wed, 23 Apr 2025 13:44:06 +0200 Subject: [PATCH] hack/bats: Allow specifying PODMAN_ROOTLESS_USER Signed-off-by: Ricardo Branco --- hack/bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/bats b/hack/bats index 4fbf88e7b7..d886ebdb4e 100755 --- a/hack/bats +++ b/hack/bats @@ -124,7 +124,7 @@ if [[ -z "$CONTAINERS_HELPER_BINARY_DIR" ]]; then fi # Used in 120-load test to identify rootless destination for podman image scp -export PODMAN_ROOTLESS_USER=$(id -un) +export PODMAN_ROOTLESS_USER=${PODMAN_ROOTLESS_USER:-$(id -un)} # Make sure to always check for leaks when running locally export PODMAN_BATS_LEAK_CHECK=1