summaryrefslogtreecommitdiff
path: root/test/buildah-bud/run-buildah-bud-tests
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-07-18 17:17:26 +0000
committerGitHub <noreply@github.com>2022-07-18 17:17:26 +0000
commit5e4d72943448d0e7ff5ea94c133e08fdaf0a5969 (patch)
treed8f32488e387734e7422dd6aa0094df3d72fd270 /test/buildah-bud/run-buildah-bud-tests
parentd890c4d98edcd2ed6f5f26bb19ed2282cea1cb46 (diff)
parent1aafb01a9950c5d2c46278cf22488b9acfeaab00 (diff)
downloadpodman-5e4d72943448d0e7ff5ea94c133e08fdaf0a5969.tar.gz
podman-5e4d72943448d0e7ff5ea94c133e08fdaf0a5969.tar.bz2
podman-5e4d72943448d0e7ff5ea94c133e08fdaf0a5969.zip
Merge pull request #14890 from rhatdan/VENDOR
Vendor in containers/(storage,image, common, buildah)
Diffstat (limited to 'test/buildah-bud/run-buildah-bud-tests')
-rwxr-xr-xtest/buildah-bud/run-buildah-bud-tests9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/buildah-bud/run-buildah-bud-tests b/test/buildah-bud/run-buildah-bud-tests
index 4ff062496..d0e2e3237 100755
--- a/test/buildah-bud/run-buildah-bud-tests
+++ b/test/buildah-bud/run-buildah-bud-tests
@@ -94,10 +94,13 @@ fi
set -e
# Run sudo early, to refresh the credentials cache. This is a NOP under CI,
-# but might be appreciated by developers who run this script, step away
+# but might be appreciated by developers who run this script, step away
# during the git-checkout-buildah step, then come back twenty minutes later
-# to an expired sudo prompt and no tests have run.
-sudo --validate
+# to an expired sudo prompt and no tests have run. (No need to do this
+# for checkout; only when running tests)
+if [[ -n $do_test ]]; then
+ sudo --validate
+fi
# Before pulling buildah (while still cd'ed to podman repo), try to determine
# if this is a PR, and if so if it's a revendoring of buildah. We use this to