]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-602412-dequote-redirect
stablize gtest testcase environment
[apt.git] / test / integration / test-bug-602412-dequote-redirect
index b9d232f90bd608668ab40df84bd24e8c23b12e0d..c5f0e1e64e3c81ef8a068fad42f9acc091ca8524 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 'amd64'
 
@@ -28,9 +28,9 @@ Reading package lists..." aptget update
        testsuccess --nomsg aptget install unrelated --download-only -y
 }
 
-testrun 'http://localhost:8080'
+testrun "http://localhost:${APTHTTPPORT}"
 
 rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt/archives
 changetohttpswebserver
 
-testrun 'https://localhost:4433'
+testrun "https://localhost:${APTHTTPSPORT}"