summaryrefslogtreecommitdiff
path: root/contrib/cirrus/setup_environment.sh
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-10-13 10:41:59 +0200
committerGitHub <noreply@github.com>2021-10-13 10:41:59 +0200
commitf12dc28bbc12376783064c645093715ef6831bd1 (patch)
treeaefd2efdfaf940a8f626e051c60eb703cc12f4a6 /contrib/cirrus/setup_environment.sh
parent0b8673d0e7c335e7edbaf5e4d0393ed409f08efe (diff)
parent3ba69dccf78194792a4b0156db8c69417b20a713 (diff)
downloadpodman-f12dc28bbc12376783064c645093715ef6831bd1.tar.gz
podman-f12dc28bbc12376783064c645093715ef6831bd1.tar.bz2
podman-f12dc28bbc12376783064c645093715ef6831bd1.zip
Merge pull request #11565 from Luap99/rootlessport-bin
rootlessport: reduce memory usage of the process
Diffstat (limited to 'contrib/cirrus/setup_environment.sh')
-rwxr-xr-xcontrib/cirrus/setup_environment.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/cirrus/setup_environment.sh b/contrib/cirrus/setup_environment.sh
index f2afbfef5..3786054a7 100755
--- a/contrib/cirrus/setup_environment.sh
+++ b/contrib/cirrus/setup_environment.sh
@@ -236,9 +236,19 @@ case "$TEST_FLAVOR" in
# Use existing host bits when testing is to happen inside a container
# since this script will run again in that environment.
# shellcheck disable=SC2154
- if ((CONTAINER==0)) && [[ "$TEST_ENVIRON" == "host" ]]; then
+ if [[ "$TEST_ENVIRON" == "host" ]]; then
+ if ((CONTAINER)); then
+ die "Refusing to config. host-test in container";
+ fi
remove_packaged_podman_files
make install PREFIX=/usr ETCDIR=/etc
+ elif [[ "$TEST_ENVIRON" == "container" ]]; then
+ if ((CONTAINER)); then
+ remove_packaged_podman_files
+ make install PREFIX=/usr ETCDIR=/etc
+ fi
+ else
+ die "Invalid value for $$TEST_ENVIRON=$TEST_ENVIRON"
fi
install_test_configs