]> git.saurik.com Git - apt.git/blobdiff - test/integration/test-ubuntu-bug-346386-apt-get-update-paywall
test/integration/test-ubuntu-bug-346386-apt-get-update-paywall: use downloadfile()
[apt.git] / test / integration / test-ubuntu-bug-346386-apt-get-update-paywall
index 1576c396c9ab02ed1b4990b35e72e9068886f060..a773660d2b9f3b34a5c5a3758e3e1e1fdf33deed 100755 (executable)
@@ -16,13 +16,11 @@ setupaptarchive
 changetowebserver -o 'aptwebserver::overwrite::.*::filename=/knights'
 
 msgtest 'Acquire test file from the webserver to check' 'overwrite'
-echo '601 Configuration
-Config-Item: Acquire::http::DependOnSTDIN=0
-
-600 Acquire URI
-URI: http://localhost:8080/holygrail
-Filename: knights-talking
-' | http >/dev/null 2>&1 && msgpass || msgfail
+if downloadfile http://localhost:8080/holygrail ./knights-talking >/dev/null; then
+    msgpass
+else
+    msgfail
+fi
 testfileequal knights-talking 'ni ni ni'
 
 ensure_n_canary_strings_in_dir() {