commit | c3e7a0c2bf4f810182888026d2f1454659ab049a | [log] [tgz] |
---|---|---|
author | Carlos Sanchez <carlos@apache.org> | Wed Apr 20 16:39:04 2016 +0200 |
committer | Carlos Sanchez <carlos@apache.org> | Wed Apr 20 16:39:04 2016 +0200 |
tree | 7cdbef3033e723cb57b167a01e988fa29e543fc4 | |
parent | 8cb67a071aa0b080d1f37c34a07716cdd0872995 [diff] |
Make tests work on Docker for Mac
diff --git a/tests/test_helpers.bash b/tests/test_helpers.bash index 787edd3..d5a3794 100644 --- a/tests/test_helpers.bash +++ b/tests/test_helpers.bash
@@ -42,7 +42,11 @@ function get_jenkins_url { if [ -z "${DOCKER_HOST}" ]; then - DOCKER_IP=localhost + if [ "$(uname)" == "Darwin" ]; then + DOCKER_IP=docker.local + else + DOCKER_IP=localhost + fi else DOCKER_IP=$(echo "$DOCKER_HOST" | sed -e 's|tcp://\(.*\):[0-9]*|\1|') fi