summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@redhat.com>2019-07-25 11:15:12 +0200
committerMichael Scherer <misc@redhat.com>2019-07-25 11:20:00 +0200
commit155b9a8b36268c92a2081b80611be4483d5122e6 (patch)
treeafca238e97e3c685498b444d73e6103c30560fbd
parent834c1c1368b067c777b42c6b130e1fe1aa954fea (diff)
Force python 2.7 for Centos 7
Otherwise, the test suite break since it detect python 3 and use it, while python 3 on Centos 7 is missing a few packages. Change-Id: Ia57f6467a0c6b85f001ea6bb2812cb01c8c301ce
-rw-r--r--build-gluster-org/scripts/centos-regression.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/build-gluster-org/scripts/centos-regression.sh b/build-gluster-org/scripts/centos-regression.sh
index cb2134e..23d277e 100644
--- a/build-gluster-org/scripts/centos-regression.sh
+++ b/build-gluster-org/scripts/centos-regression.sh
@@ -12,6 +12,9 @@ echo
echo "$MY_ENV"
echo
+# use "7 and not "7" since RHEL use 7.6 while Centos use 7
+grep -q 'VERSION_ID="7' /etc/os-release && export PYTHON=/usr/bin/python2.7
+
# FB and experimental branch gets a pass
if [ "$GERRIT_BRANCH" = "release-3.8-fb" ] || [ "$GERRIT_BRANCH" = 'experimental' ]; then
echo "Skipping regression run for ${GERRIT_BRANCH}"