From 131d0e3a261076da715102cb79275988cac810d1 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 4 Feb 2021 09:38:01 +0100 Subject: Prevent temporary directory from triggering failure grepping The grep for case-insensitive GPG finds also e.g. "/tmp/tmp.Kc5kKgPg0D" which is not the intention, so we simply eliminate the variation of the /tmp directory here from the output to prevent these false positives. Gbp-Dch: Ignore --- test/integration/test-bug-733028-gpg-resource-limit | 1 + 1 file changed, 1 insertion(+) diff --git a/test/integration/test-bug-733028-gpg-resource-limit b/test/integration/test-bug-733028-gpg-resource-limit index 69baf4e5c..b44facda3 100755 --- a/test/integration/test-bug-733028-gpg-resource-limit +++ b/test/integration/test-bug-733028-gpg-resource-limit @@ -17,6 +17,7 @@ testaptkeys 'Joe Sixpack' testsuccess aptget update msgtest 'Test for no gpg errors/warnings in' 'apt-get update' +sed -i -e "s#${TMPWORKINGDIRECTORY}#/tmp/tmp.XXXXXX#g" rootdir/tmp/testsuccess.output if grep -iq 'GPG' rootdir/tmp/testsuccess.output; then cat rootdir/tmp/testsuccess.output msgfail -- cgit v1.2.3-70-g09d2