From 279e59406a41af6055d55ffc58bb9a7c69b0ab39 Mon Sep 17 00:00:00 2001 From: Deepshikha khandelwal Date: Wed, 31 Jul 2019 10:58:17 +0530 Subject: Fix python version to 2.7 when it is centos 7 machine Some packages are not available for python3.6 in Centos7 machines Change-Id: Id8904a86804700f4c4caeb2724eb100fae653239 --- build-gluster-org/scripts/regression-test-burn-in.sh | 2 ++ build-gluster-org/scripts/regression-test-with-multiplex.sh | 2 ++ 2 files changed, 4 insertions(+) (limited to 'build-gluster-org') diff --git a/build-gluster-org/scripts/regression-test-burn-in.sh b/build-gluster-org/scripts/regression-test-burn-in.sh index be74475..c3ad27b 100644 --- a/build-gluster-org/scripts/regression-test-burn-in.sh +++ b/build-gluster-org/scripts/regression-test-burn-in.sh @@ -12,6 +12,8 @@ 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 # Remove any gluster daemon leftovers from aborted runs sudo -E bash /opt/qa/cleanup.sh diff --git a/build-gluster-org/scripts/regression-test-with-multiplex.sh b/build-gluster-org/scripts/regression-test-with-multiplex.sh index 00b1bd6..798a15d 100644 --- a/build-gluster-org/scripts/regression-test-with-multiplex.sh +++ b/build-gluster-org/scripts/regression-test-with-multiplex.sh @@ -12,6 +12,8 @@ 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 # Remove any gluster daemon leftovers from aborted runs sudo -E bash /opt/qa/cleanup.sh -- cgit