Browse Source

test suite: Do not exit 0 in trap for QUIT

This hides errors in the test suite because it will exit
with 0 here. Instead, just do exit 1 in most traps, and
do just the cleanup in the QUIT hook.

This fixes a regression introduced with the caching of the
GPG home directory in 4ce2f35248.
tags/debian/1.4_rc1
Julian Andres Klode 4 years ago
parent
commit
bcb1919a88
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      test/integration/run-tests

+ 2
- 1
test/integration/run-tests View File

@@ -114,7 +114,8 @@ removesigninghome() {
GNUPGHOME="${APT_TEST_SIGNINGHOME}" gpgconf --kill gpg-agent >/dev/null 2>&1 || true
rm -rf -- "$APT_TEST_SIGNINGHOME"
}
trap "removesigninghome; exit 0" 0 HUP INT QUIT ILL ABRT FPE SEGV PIPE TERM
trap "exit 1" 0 HUP INT ILL ABRT FPE SEGV PIPE TERM
trap "removesigninghome" 0 QUIT
export APT_TEST_SIGNINGHOME

TOTAL="$(echo "$TESTLIST" | wc -l)"


Loading…
Cancel
Save