diff options
author | David Kalnischkies <david@kalnischkies.de> | 2021-02-04 09:38:01 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2021-02-04 11:00:00 +0100 |
commit | 131d0e3a261076da715102cb79275988cac810d1 (patch) | |
tree | e73e8811527143b513446916c940f3a0a21ee5df /test | |
parent | f4c4ffbacff336c98470123924f81032de4141cc (diff) |
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
Diffstat (limited to 'test')
-rwxr-xr-x | test/integration/test-bug-733028-gpg-resource-limit | 1 |
1 files changed, 1 insertions, 0 deletions
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 |