]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-bug-602412-dequote-redirect
optional write aptwebserver log to client specific files
[apt.git] / test / integration / test-bug-602412-dequote-redirect
index b4da876cb87bda31ba962542e0d51db82f256bd3..9c6aa394553bc4f8229727543525168ddddcc46f 100755 (executable)
@@ -32,8 +32,9 @@ Reading package lists..." aptget update
 
 for CODE in 301 302 307; do
        webserverconfig 'aptwebserver::redirect::httpcode' "$CODE"
+       rm -f aptarchive/webserver.log.client*.log
        testrun "$CODE" "http://localhost:${APTHTTPPORT}"
-       testsuccess grep "^HTTP/1.1 $CODE " aptarchive/webserver.log
+       testsuccess grep "^HTTP/1.1 $CODE " aptarchive/webserver.log.client*.log
        rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt/archives
 done
 
@@ -41,7 +42,9 @@ changetohttpswebserver
 
 for CODE in 301 302 307; do
        webserverconfig 'aptwebserver::redirect::httpcode' "$CODE"
+       rm -f aptarchive/webserver.log.client*.log
        testrun "$CODE" "https://localhost:${APTHTTPSPORT}"
+       testsuccess grep "^HTTP/1.1 $CODE " aptarchive/webserver.log.client*.log
        rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt/archives
 done