diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-24 14:41:33 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-24 14:44:16 +0200 |
commit | 867bc15c83e235d14b562c2b83b5b95a6e7655e5 (patch) | |
tree | c57e494a1a1448dc5970041a1bf2f3d6ad2c51df | |
parent | 4d8e1f716794bf7ca267091bb2017dfd73770762 (diff) | |
download | gnutls-867bc15c83e235d14b562c2b83b5b95a6e7655e5.tar.gz |
tests: don't use piped tee in pkcs8-decode
It would prevent error codes from being detected in the tests.
-rwxr-xr-x | tests/key-tests/pkcs8-decode | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/key-tests/pkcs8-decode b/tests/key-tests/pkcs8-decode index 0d835869fc..d06ac859cb 100755 --- a/tests/key-tests/pkcs8-decode +++ b/tests/key-tests/pkcs8-decode @@ -35,27 +35,24 @@ for p8 in "encpkcs8.pem foobar" "unencpkcs8.pem" "enc2pkcs8.pem baz" "pkcs8-pbes file="$1" passwd="$2" ${VALGRIND} "${CERTTOOL}" --key-info --pkcs8 --password "${passwd}" \ - --infile "${srcdir}/data/${file}" | tee $TMPFILE >/dev/null + --infile "${srcdir}/data/${file}" rc=$? if test ${rc} != 0; then - cat $TMPFILE echo "PKCS8 FATAL ${p8}" ret=1 else echo "PKCS8 OK ${p8}" fi done -rm -f $TMPFILE for p8 in "openssl-aes128.p8" "openssl-aes256.p8" "openssl-3des.p8"; do set -- ${p8} file="$1" passwd="$2" ${VALGRIND} "${CERTTOOL}" --p8-info --password "1234" \ - --infile "${srcdir}/data/${file}" | tee $TMPFILE >/dev/null + --infile "${srcdir}/data/${file}" --outfile $TMPFILE rc=$? if test ${rc} != 0; then - cat $TMPFILE echo "PKCS8 FATAL ${p8}" ret=1 fi |