From 54f7b89c366721bdf57858c14af57c07a2ece43d Mon Sep 17 00:00:00 2001 From: Nils Ponsard | Nitrokey Date: Tue, 19 Sep 2023 10:37:24 +0200 Subject: [PATCH] fix: set -e in tests --- tools/tests/decrypt_rsa_pkcs.sh | 2 ++ tools/tests/decrypt_rsa_pkcs_sha1.sh | 2 ++ tools/tests/decrypt_rsa_pkcs_sha256.sh | 2 ++ tools/tests/decrypt_rsa_pkcs_sha512.sh | 2 ++ tools/tests/decrypt_rsa_raw.sh | 2 ++ tools/tests/sign_rsa_sha1.sh | 2 ++ 6 files changed, 12 insertions(+) diff --git a/tools/tests/decrypt_rsa_pkcs.sh b/tools/tests/decrypt_rsa_pkcs.sh index 37e0b183..432df84c 100755 --- a/tools/tests/decrypt_rsa_pkcs.sh +++ b/tools/tests/decrypt_rsa_pkcs.sh @@ -1,5 +1,7 @@ #!/bin/sh -x +set -e + KEYID=rsakey HEXID=$(echo -n ${KEYID} | xxd -ps) diff --git a/tools/tests/decrypt_rsa_pkcs_sha1.sh b/tools/tests/decrypt_rsa_pkcs_sha1.sh index 2ba89ab4..2deb7df4 100755 --- a/tools/tests/decrypt_rsa_pkcs_sha1.sh +++ b/tools/tests/decrypt_rsa_pkcs_sha1.sh @@ -1,5 +1,7 @@ #!/bin/sh -x +set -e + KEYID=rsakey HEXID=$(echo -n ${KEYID} | xxd -ps) diff --git a/tools/tests/decrypt_rsa_pkcs_sha256.sh b/tools/tests/decrypt_rsa_pkcs_sha256.sh index ae056ee7..c2bb367d 100755 --- a/tools/tests/decrypt_rsa_pkcs_sha256.sh +++ b/tools/tests/decrypt_rsa_pkcs_sha256.sh @@ -1,5 +1,7 @@ #!/bin/sh -x +set -e + KEYID=rsakey HEXID=$(echo -n ${KEYID} | xxd -ps) diff --git a/tools/tests/decrypt_rsa_pkcs_sha512.sh b/tools/tests/decrypt_rsa_pkcs_sha512.sh index 43dfc729..ce1d8478 100755 --- a/tools/tests/decrypt_rsa_pkcs_sha512.sh +++ b/tools/tests/decrypt_rsa_pkcs_sha512.sh @@ -1,5 +1,7 @@ #!/bin/sh -x +set -e + KEYID=rsakey HEXID=$(echo -n ${KEYID} | xxd -ps) diff --git a/tools/tests/decrypt_rsa_raw.sh b/tools/tests/decrypt_rsa_raw.sh index dd6a1a88..6f1441a1 100755 --- a/tools/tests/decrypt_rsa_raw.sh +++ b/tools/tests/decrypt_rsa_raw.sh @@ -1,5 +1,7 @@ #!/bin/sh -x +set -e + KEYID=rsakey HEXID=$(echo -n ${KEYID} | xxd -ps) diff --git a/tools/tests/sign_rsa_sha1.sh b/tools/tests/sign_rsa_sha1.sh index 39a5a940..82d3c49e 100755 --- a/tools/tests/sign_rsa_sha1.sh +++ b/tools/tests/sign_rsa_sha1.sh @@ -1,5 +1,7 @@ #!/bin/sh -x +set -e + KEYID=rsakey HEXID=$(echo -n ${KEYID} | xxd -ps)