summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-07-18 14:48:37 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2013-07-18 14:48:37 +0000
commit8cb0e9879a51c1f12b8ab8d9dcb076cd145e7375 (patch)
tree4313a0c8fcb93e154e91f3b6e23d9757ce6e923d /tests
parent1e6726f484da512871520e47d45afec13de6ce03 (diff)
downloadmorph-8cb0e9879a51c1f12b8ab8d9dcb076cd145e7375.tar.gz
Use 127.0.0.1 instead of localhost
We do not currently install an /etc/hosts in Baserock, and thus the name localhost is not guaranteed to resolve as expected. This patch changes the tests to use 127.0.0.1 instead, since that is the IP address we want localhost to resolve to.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/update-gits-chunk.script2
-rwxr-xr-xtests/update-gits-stratum.script2
-rwxr-xr-xtests/update-gits-submodules.script2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/update-gits-chunk.script b/tests/update-gits-chunk.script
index 288438ec..3f5b3e71 100755
--- a/tests/update-gits-chunk.script
+++ b/tests/update-gits-chunk.script
@@ -25,7 +25,7 @@ set -eu
git daemon --port=9419 --pid-file="$DATADIR/git.pid" --reuseaddr \
--export-all --base-path="$DATADIR" 2> /dev/null &
trap 'kill $(cat "$DATADIR/git.pid")' INT TERM ERR
-REPO_ALIAS='test=git://localhost:9419/%s#git://localhost:9419/%s'
+REPO_ALIAS='test=git://127.0.0.1:9419/%s#git://127.0.0.1:9419/%s'
# Create an empty commit in a chunk repository
cd "$DATADIR/chunk-repo"
diff --git a/tests/update-gits-stratum.script b/tests/update-gits-stratum.script
index 112a8973..6ad95cd9 100755
--- a/tests/update-gits-stratum.script
+++ b/tests/update-gits-stratum.script
@@ -25,7 +25,7 @@ set -eu
git daemon --port=9419 --pid-file="$DATADIR/git.pid" --reuseaddr \
--export-all --base-path="$DATADIR" 2> /dev/null &
trap 'kill $(cat "$DATADIR/git.pid")' INT TERM ERR
-REPO_ALIAS='test=git://localhost:9419/%s#git://localhost:9419/%s'
+REPO_ALIAS='test=git://127.0.0.1:9419/%s#git://127.0.0.1:9419/%s'
# Create an empty commit in a chunk repository
cd "$DATADIR/chunk-repo"
diff --git a/tests/update-gits-submodules.script b/tests/update-gits-submodules.script
index 66d35897..557c29e7 100755
--- a/tests/update-gits-submodules.script
+++ b/tests/update-gits-submodules.script
@@ -25,7 +25,7 @@ set -eu
git daemon --port=9419 --pid-file="$DATADIR/git.pid" --reuseaddr \
--export-all --base-path="$DATADIR" 2> /dev/null &
trap 'kill $(cat "$DATADIR/git.pid")' INT TERM ERR
-REPO_ALIAS='test=git://localhost:9419/%s#git://localhost:9419/%s'
+REPO_ALIAS='test=git://127.0.0.1:9419/%s#git://127.0.0.1:9419/%s'
# Create a repo to use as a submodule
submodule="$DATADIR/submodule-repo"