diff options
author | Julian Andres Klode <jak@debian.org> | 2016-09-01 10:57:49 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-09-01 11:00:10 +0200 |
commit | 0343b48e06fb990ee15a020bc6716b1a5a984e14 (patch) | |
tree | e0a759a49042f4f1f33d22661d3beae245026476 | |
parent | cf7503d8a09ebce695423fdeb2402c456c18f3d8 (diff) |
test-apt-cdrom: Fix for gnupg 2.1.15
gpg annoyingly changed its output and broke our test suite
again by adding two extra lines about key type and issuer.
Really annoying.
Those lines also have more than one space after the colon,
so let's use \s* there - and also change the other lines to
support variable length whitespace in case gpg decides to
break things there too.
-rwxr-xr-x | test/integration/test-apt-cdrom | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/integration/test-apt-cdrom b/test/integration/test-apt-cdrom index a3c3b5ba0..212f0baa4 100755 --- a/test/integration/test-apt-cdrom +++ b/test/integration/test-apt-cdrom @@ -29,7 +29,12 @@ aptcdromlog() { test ! -e rootdir/media/cdrom || echo "CD-ROM is mounted, but shouldn't be!" test -e rootdir/media/cdrom-unmounted || echo "Unmounted CD-ROM doesn't exist, but it should!" aptcdrom "$@" -o quiet=1 >rootdir/tmp/apt-cdrom.log 2>&1 </dev/null - sed -e '/gpgv\?: Signature made/ d' -e '/gpgv\?: Good signature/ d' -e '/^Identifying/ d' -e '/Reading / d' rootdir/tmp/apt-cdrom.log + sed -e '/gpgv\?:\s*Signature made/ d' \ + -e '/gpgv\?:\s*Good signature/ d' \ + -e '/gpgv\?:\s*using RSA key/ d' \ + -e '/gpgv\?:\s*issuer/ d' \ + -e '/^Identifying/ d' \ + -e '/Reading / d' rootdir/tmp/apt-cdrom.log test ! -e rootdir/media/cdrom || echo "CD-ROM is mounted, but shouldn't be!" test -e rootdir/media/cdrom-unmounted || echo "Unmounted CD-ROM doesn't exist, but it should!" } |