summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts
diff options
context:
space:
mode:
authorDeepshikha khandelwal <dkhandel@redhat.com>2019-07-31 10:58:17 +0530
committerDeepshikha khandelwal <dkhandel@redhat.com>2019-07-31 10:58:17 +0530
commit279e59406a41af6055d55ffc58bb9a7c69b0ab39 (patch)
tree4b5ae4aed0737755720ae9ca0043e7ce2b18d339 /build-gluster-org/scripts
parent50a8c9725c42895515dafd21619856c14f855bd4 (diff)
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
Diffstat (limited to 'build-gluster-org/scripts')
-rw-r--r--build-gluster-org/scripts/regression-test-burn-in.sh2
-rw-r--r--build-gluster-org/scripts/regression-test-with-multiplex.sh2
2 files changed, 4 insertions, 0 deletions
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