summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2016-09-11 11:51:37 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2016-09-11 13:20:09 +0200
commit09f1d96b662d34c55de9903a8a890ad887bcd699 (patch)
tree46ed6d8b79f40215d383f4e695d270666de94afc
parent6aaf25c758790f99cb3ab3d74b5c5addac8de2b7 (diff)
downloadgnutls-09f1d96b662d34c55de9903a8a890ad887bcd699.tar.gz
avoid the usage of '-a' and '-o' bash options
This keeps syntax-check happy.
-rwxr-xr-xtests/suite/testrandom.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/suite/testrandom.sh b/tests/suite/testrandom.sh
index 79b90d32c0..75e4a40786 100755
--- a/tests/suite/testrandom.sh
+++ b/tests/suite/testrandom.sh
@@ -58,7 +58,7 @@ while [ ${counter} -lt 200 ]; do
"${srcdir}/x509random.pl" > "${file}"
${VALGRIND} "${CERTTOOL}" -i --inder --infile "${file}" >/dev/null
ret=$?
- if [ ${ret} != 0 -a ${ret} != 1 ]; then
+ if test ${ret} != 0 && test ${ret} != 1; then
echo "Unknown exit code with ${file}"
exit 1
fi
@@ -73,7 +73,7 @@ while [ ${counter} -lt 200 ]; do
"${srcdir}/asn1random.pl" > "${file}"
${VALGRIND} "${CERTTOOL}" -i --inder --infile "${file}" >/dev/null 2>/dev/null
ret=$?
- if [ ${ret} != 0 -a ${ret} != 1 ]; then
+ if test ${ret} != 0 && test ${ret} != 1; then
echo "Unknown exit code with ${file}"
exit 1
fi