From 8cb0e9879a51c1f12b8ab8d9dcb076cd145e7375 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Thu, 18 Jul 2013 14:48:37 +0000 Subject: 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. --- tests/update-gits-chunk.script | 2 +- tests/update-gits-stratum.script | 2 +- tests/update-gits-submodules.script | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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" -- cgit v1.2.1