From d40af51eb5ac647096f2e7cfe0920c3df246e0a2 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 20 Nov 2018 16:26:10 +0100 Subject: [PATCH] gnu info test script: get rid of bogus text/plain results on subfiles --- tests/info/info.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/info/info.sh b/tests/info/info.sh index 5c2c472f..ca9d3a46 100755 --- a/tests/info/info.sh +++ b/tests/info/info.sh @@ -14,9 +14,13 @@ initvariables $0 # it. # It seems that later versions of xdg-mime return octet-stream so all back # to normal +# Nope, not always: added mime type clause to fix. Using text/html +# because the result document is text/html|gnuinfo -recollq '"GPGME is compiled with largefile support by default"' 2> $mystderr | - egrep -v '^Recoll query: ' > $mystdout +( + recollq '"GPGME is compiled with largefile support by default"' \ + mime:text/html +) 2> $mystderr | egrep -v '^Recoll query: ' > $mystdout diff -w ${myname}.txt $mystdout > $mydiffs 2>&1