diff --git a/tools/cd_scripts/e2e_test.sh b/tools/cd_scripts/e2e_test.sh index 7776656914..5b7c165b9c 100644 --- a/tools/cd_scripts/e2e_test.sh +++ b/tools/cd_scripts/e2e_test.sh @@ -106,13 +106,6 @@ else #install git sudo yum -y install git - # install python3-setuptools tools and python3-pip - sudo yum -y install gcc python3-devel python3-setuptools redhat-rpm-config - sudo yum -y install python3-pip - # Downloading composite object requires integrity checking with CRC32c in gsutil. - # it requires to install crcmod. - pip3 install --require-hashes -r requirements.txt --user - #install Development tools sudo yum -y install gcc gcc-c++ make fi @@ -129,6 +122,19 @@ go version |& tee -a ~/logs.txt export PATH=${PATH}:/usr/local/go/bin git clone https://github.com/googlecloudplatform/gcsfuse |& tee -a ~/logs.txt cd gcsfuse + +# Installation of crcmod is working through pip only on rhel and centos. +# For debian and ubuntu, we are installing through sudo apt. +if grep -q rhel details.txt || grep -q centos details.txt; +then + # install python3-setuptools tools and python3-pip + sudo yum -y install gcc python3-devel python3-setuptools redhat-rpm-config + sudo yum -y install python3-pip + # Downloading composite object requires integrity checking with CRC32c in gsutil. + # it requires to install crcmod. + pip3 install --require-hashes -r tools/cd_scripts/requirements.txt --user +fi + git checkout $(sed -n 2p ~/details.txt) |& tee -a ~/logs.txt #run tests with testbucket flag