summaryrefslogtreecommitdiff
path: root/contrib/cirrus/lib.sh
diff options
context:
space:
mode:
authorChris Evich <cevich@redhat.com>2021-03-18 09:36:20 -0400
committerChris Evich <cevich@redhat.com>2021-04-05 15:38:04 -0400
commit804da7ca07521deb81f5b4bcfe309580ae54b163 (patch)
tree9e971972e8a0c24d5720c3bbebb90739664c197e /contrib/cirrus/lib.sh
parent3fae801a3714ac058c5d19edf7f2288c18e84195 (diff)
downloadpodman-804da7ca07521deb81f5b4bcfe309580ae54b163.tar.gz
podman-804da7ca07521deb81f5b4bcfe309580ae54b163.tar.bz2
podman-804da7ca07521deb81f5b4bcfe309580ae54b163.zip
Cirrus: Make use of shared get_ci_vm container
Depends on: https://github.com/containers/automation_images/pull/57 https://github.com/containers/automation/pull/64 https://github.com/containers/automation/pull/66 https://github.com/containers/automation/pull/67 https://github.com/containers/automation/pull/68 Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/lib.sh')
-rw-r--r--contrib/cirrus/lib.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/contrib/cirrus/lib.sh b/contrib/cirrus/lib.sh
index 451a267b3..2cd28e34a 100644
--- a/contrib/cirrus/lib.sh
+++ b/contrib/cirrus/lib.sh
@@ -13,8 +13,12 @@ set -a
_waserrexit=0
if [[ "$SHELLOPTS" =~ errexit ]]; then _waserrexit=1; fi
set +e # Assumed in F33 for setting global vars
-source /etc/profile
-source /etc/environment
+if [[ -r "/etc/automation_environment" ]]; then
+ source /etc/automation_environment
+else # prior to automation library v2.0, this was necessary
+ source /etc/profile
+ source /etc/environment
+fi
if [[ -r "/etc/ci_environment" ]]; then source /etc/ci_environment; fi
USER="$(whoami)"
HOME="$(getent passwd $USER | cut -d : -f 6)"