relax grep to support newer curl output format
authorDavid Kalnischkies <david@kalnischkies.de>
Fri, 19 Sep 2014 22:12:13 +0000 (00:12 +0200)
committerDavid Kalnischkies <david@kalnischkies.de>
Fri, 19 Sep 2014 22:12:13 +0000 (00:12 +0200)
Git-Dch: Ignore

test/integration/test-apt-https-no-redirect

index 73352a2..bc744d6 100755 (executable)
@@ -25,6 +25,11 @@ msgtest 'download of a file does not work if' 'https redirected to http'
 downloadfile 'https://localhost:4433/redirectme/working' redirectfile >curloutput 2>&1 && msgfail || msgpass
 
 msgtest 'libcurl has forbidden access in last request to' 'http resource'
-grep -q -- 'Protocol http not supported or disabled in libcurl' curloutput && msgpass || msgfail
+if grep -q -E -- 'Protocol "?http"? not supported or disabled in libcurl' curloutput; then
+       msgpass
+else
+       cat curloutput
+       msgfail
+fi