]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-602412-dequote-redirect
drop privileges in copy:// method as we do for file://
[apt.git] / test / integration / test-bug-602412-dequote-redirect
index 384c8b1132042d584e47aca394ee8ae659eff146..e90fd240b6b90548e679681a0ef432e1aebd01b9 100755 (executable)
@@ -21,19 +21,16 @@ testrun() {
        testsuccess --nomsg aptget update
 
        # check that I-M-S header is kept in redirections
-       testsuccessequal "Hit $1 unstable InRelease
-Hit $1 unstable/main Sources
-Hit $1 unstable/main amd64 Packages
-Hit $1 unstable/main Translation-en
+       testsuccessequal "Hit:1 $1 unstable InRelease
 Reading package lists..." aptget update
 
        msgtest 'Test redirection works in' 'package download'
        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}"