]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-778375-server-has-no-reason-phrase
CMake: Switch integration tests and travis over
[apt.git] / test / integration / test-bug-778375-server-has-no-reason-phrase
index 23481ef881a3df62624460395536e1d2fb965998..bce41235f3393fd200dc0f2567f717b2dc8144d4 100755 (executable)
@@ -1,8 +1,8 @@
 #!/bin/sh
 set -e
 
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
 
 setupenvironment
 configarchitecture 'native'
@@ -36,5 +36,5 @@ runtest() {
        testdownload 'non-existent file via redirect fails' 'testfailure' "$1/redirectme/failing"
 }
 
-runtest 'http://localhost:8080'
-runtest 'https://localhost:4433'
+runtest "http://localhost:${APTHTTPPORT}"
+runtest "https://localhost:${APTHTTPSPORT}"