diff options
author | Loïc Minier <lool@dooz.org> | 2010-01-01 19:01:32 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2010-01-01 19:01:32 +0100 |
commit | a592f11ad8623f5dfe6a78e3c0d1878de567be8d (patch) | |
tree | a6b17edeb91e553cd3b7f5eb1afd785f8d03f3a3 /testsuite | |
parent | 9c199e6ebd00b41e77472941ae92c526bdcec8ae (diff) | |
download | pbuilder-a592f11ad8623f5dfe6a78e3c0d1878de567be8d.tar pbuilder-a592f11ad8623f5dfe6a78e3c0d1878de567be8d.tar.gz |
Set testsuite mirror depending on FQDN
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/run-test.sh | 9 |
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 |