Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Add check on proper installation of rsync and bats, which would else …
Browse files Browse the repository at this point in the history
…go unnoticed.
  • Loading branch information
ericzolf committed May 5, 2015
1 parent a9921d1 commit f61c816
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pushtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,17 @@ do
fi

echo "Installing bats and rsync on test server $I"
ssh -o StrictHostKeyChecking=no -i ${RSA_ID} root@$I "yum install -y bats rsync"
echo "copying tests to test server $I"
rsync --delete -va -e "ssh -o StrictHostKeyChecking=no -i ${RSA_ID}" ${WORKSPACE}/soe/tests \
root@$I:
if ssh -o StrictHostKeyChecking=no -i ${RSA_ID} root@$I \
"yum install -y bats rsync"
then
echo "copying tests to test server $I"
rsync --delete -va -e \
"ssh -o StrictHostKeyChecking=no -i ${RSA_ID}" \
${WORKSPACE}/soe/tests root@$I:
else
echo "ERROR: Couldn't install rsync and bats on '$I'." >&2
exit 1
fi
done

# execute the tests in parallel on all test servers
Expand Down

0 comments on commit f61c816

Please sign in to comment.