tests: install awscli from EPEL. Fix #1037

This commit is contained in:
Aleksandar Todorov 2021-03-18 12:39:02 +02:00 committed by Ondřej Budai
parent 7066b02bf7
commit aa21b57daf
2 changed files with 4 additions and 15 deletions

View file

@ -159,14 +159,8 @@ trap cleanup EXIT
#
function installClientAWS() {
if ! hash aws; then
mkdir "$WORKDIR/aws"
pushd "$WORKDIR/aws"
curl -Ls --retry 5 --output awscliv2.zip \
https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip
unzip awscliv2.zip > /dev/null
sudo ./aws/install > /dev/null
aws --version
popd
sudo dnf install -y awscli
aws --version
fi
AWS_CMD="aws --region $AWS_REGION --output json --color on"

View file

@ -24,13 +24,8 @@ fi
# We need awscli to talk to AWS.
if ! hash aws; then
greenprint "Installing awscli"
pushd /tmp
curl -Ls --retry 5 --output awscliv2.zip \
https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip
unzip awscliv2.zip > /dev/null
sudo ./aws/install > /dev/null
aws --version
popd
sudo dnf install -y awscli
aws --version
fi
TEST_UUID=$(uuidgen)