aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-01 19:01:32 +0100
committerLoïc Minier <lool@dooz.org>2010-01-01 19:01:32 +0100
commita592f11ad8623f5dfe6a78e3c0d1878de567be8d (patch)
treea6b17edeb91e553cd3b7f5eb1afd785f8d03f3a3
parent9c199e6ebd00b41e77472941ae92c526bdcec8ae (diff)
downloadpbuilder-a592f11ad8623f5dfe6a78e3c0d1878de567be8d.tar
pbuilder-a592f11ad8623f5dfe6a78e3c0d1878de567be8d.tar.gz
Set testsuite mirror depending on FQDN
-rwxr-xr-xtestsuite/run-test.sh9
1 files changed, 8 insertions, 1 deletions
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