From a592f11ad8623f5dfe6a78e3c0d1878de567be8d Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Fri, 1 Jan 2010 19:01:32 +0100 Subject: Set testsuite mirror depending on FQDN --- testsuite/run-test.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/testsuite/run-test.sh b/testsuite/run-test.sh index 578d318..aed2ed9 100755 --- a/testsuite/run-test.sh +++ b/testsuite/run-test.sh @@ -25,7 +25,14 @@ log_success () { [ -x /usr/sbin/debootstrap ] || exit 1 [ -x /usr/bin/cdebootstrap ] || exit 1 -mirror=http://localhost:9999/debian +case "`hostname --fqdn`" in + *.dooz.org) + mirror=http://ftp.de.debian.org/debian + ;; + *) + mirror=http://localhost:9999/debian + ;; +esac testdir=$(TMPDIR=$(pwd) mktemp -d) testimage=$testdir/testimage -- cgit v1.2.3