Skip to content

Commit

Permalink
Fix integration tests setup.
Browse files Browse the repository at this point in the history
* remove the "-s" option from the call to "which" (it seems to be a
  MacOSX only option)
* use panubo/sshd instead of macropin/sshd as a base docker image
  (macropin has been replaced by panubo)

Change-Id: Iabd04f6292964e8ad50bf6a3b3aabc00669a9903
  • Loading branch information
gehel authored and Gehel committed Aug 2, 2018
1 parent b8431a7 commit 9dbc1c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cumin/tests/integration/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -e

if ! which -s docker; then
if ! which docker &> /dev/null; then
echo "docker executable not found. Aborting!"
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion cumin/tests/integration/transports/clustershell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ EOF
for index in {1..5}; do
HOST_NAME="${CUMIN_IDENTIFIER}-${index}"
# TODO: use a custom-generated image
docker run -d -p "222${index}:22" -v "/${CUMIN_TMPDIR}/id_rsa.pub:/root/.ssh/authorized_keys" --name "${HOST_NAME}" "macropin/sshd" > /dev/null
docker run -d -p "222${index}:22" -v "/${CUMIN_TMPDIR}/id_rsa.pub:/root/.ssh/authorized_keys" --name "${HOST_NAME}" "panubo/sshd" > /dev/null
DOCKER_INSTANCES="${DOCKER_INSTANCES} ${HOST_NAME}"
SSH_ALIASES="${SSH_ALIASES}
Host ${HOST_NAME}
Expand Down

0 comments on commit 9dbc1c7

Please sign in to comment.