diff options
Diffstat (limited to 'tests/cert-tests/pem-decoding')
-rwxr-xr-x | tests/cert-tests/pem-decoding | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/cert-tests/pem-decoding b/tests/cert-tests/pem-decoding index c5ba22e26d..1daf926317 100755 --- a/tests/cert-tests/pem-decoding +++ b/tests/cert-tests/pem-decoding @@ -188,7 +188,7 @@ if test "${rc}" != "0"; then exit ${rc} fi -if grep -v '^-----BEGIN [A-Z0-9 ]\+-----$\|^[A-Za-z0-9/+=]\+$\|^-----END [A-Z0-9 ]\+-----$' ${TMPFILE} ; then +if grep -v '^-----BEGIN [A-Z0-9 ]\+-----$' ${TMPFILE} | grep -v '^[A-Za-z0-9/+=]\+$' | grep -v '^-----END [A-Z0-9 ]\+-----$' ; then echo "--no-text -k --certificate-info failed 2" exit 1 fi @@ -202,7 +202,7 @@ if test "${rc}" != "0"; then exit ${rc} fi -if grep -v '^-----BEGIN [A-Z0-9 ]\+-----$\|^[A-Za-z0-9/+=]\+$\|^-----END [A-Z0-9 ]\+-----$' ${TMPFILE} ; then +if grep -v '^-----BEGIN [A-Z0-9 ]\+-----$' ${TMPFILE} | grep -v '^[A-Za-z0-9/+=]\+$' | grep -v '^-----END [A-Z0-9 ]\+-----$' ; then echo "--no-text cert pubkey failed 2" exit 1 fi @@ -216,7 +216,7 @@ if test "${rc}" != "0"; then exit ${rc} fi -if grep -v '^-----BEGIN [A-Z0-9 ]\+-----$\|^[A-Za-z0-9/+=]\+$\|^-----END [A-Z0-9 ]\+-----$' ${TMPFILE} ; then +if grep -v '^-----BEGIN [A-Z0-9 ]\+-----$' ${TMPFILE} | grep -v '^[A-Za-z0-9/+=]\+$' | grep -v '^-----END [A-Z0-9 ]\+-----$' ; then echo "--no-text pubkey info failed 2" exit 1 fi |