From 3b5607fc31371190470074371793cb8500b5139e Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 3 Sep 2014 16:54:16 +0200 Subject: [PATCH] test/integration/test-ubuntu-bug-346386-apt-get-update-paywall: use downloadfile() --- .../test-ubuntu-bug-346386-apt-get-update-paywall | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/test/integration/test-ubuntu-bug-346386-apt-get-update-paywall b/test/integration/test-ubuntu-bug-346386-apt-get-update-paywall index 7112d2b45..a773660d2 100755 --- a/test/integration/test-ubuntu-bug-346386-apt-get-update-paywall +++ b/test/integration/test-ubuntu-bug-346386-apt-get-update-paywall @@ -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 -' | ${METHODSDIR}/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() { -- 2.45.2