summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElio Maldonado <emaldona@redhat.com>2015-02-23 22:16:19 +0100
committerElio Maldonado <emaldona@redhat.com>2015-02-23 22:16:19 +0100
commit211f3896c17a9723eaf4e0b747cd8dbbd92829ca (patch)
treef60a6d95d3f759e8b679ae35f0482ed8e664c1b5 /tests
parent996add10ce4237caee7dcd603ce7ae9a8ab7f72e (diff)
downloadnss-hg-211f3896c17a9723eaf4e0b747cd8dbbd92829ca.tar.gz
Bug 1128367 - syntax errors in some of the test shell scripts, r=kaie
Diffstat (limited to 'tests')
-rwxr-xr-xtests/all.sh2
-rwxr-xr-xtests/cipher/cipher.sh2
-rw-r--r--tests/common/init.sh2
-rwxr-xr-xtests/dbtests/dbtests.sh4
4 files changed, 5 insertions, 5 deletions
diff --git a/tests/all.sh b/tests/all.sh
index 42ee54b3a..8fbcd069b 100755
--- a/tests/all.sh
+++ b/tests/all.sh
@@ -302,7 +302,7 @@ fi
# following test for modutil should check for that instead.
# Exception: when building softoken only, shlibsign is the
# last file created.
-if [ ${NSS_BUILD_SOFTOKEN_ONLY} -eq "1" ]; then
+if [ ${NSS_BUILD_SOFTOKEN_ONLY} = "1" ]; then
LAST_FILE_BUILT=shlibsign
else
LAST_FILE_BUILT=modutil
diff --git a/tests/cipher/cipher.sh b/tests/cipher/cipher.sh
index 12e78e185..1d2561d9c 100755
--- a/tests/cipher/cipher.sh
+++ b/tests/cipher/cipher.sh
@@ -124,7 +124,7 @@ cipher_cleanup()
# built and the cipher suite run as part of an nss-softoken build.
if [ ! -x ${DIST}/${OBJDIR}/bin/bltest${PROG_SUFFIX} ]; then
echo "bltest not built, skipping this test." >> ${LOGFILE}
- res = 0
+ res=0
html_msg $res $EXP_RET "$TESTNAME"
return 0
fi
diff --git a/tests/common/init.sh b/tests/common/init.sh
index 2afc57294..521438c3d 100644
--- a/tests/common/init.sh
+++ b/tests/common/init.sh
@@ -226,7 +226,7 @@ if [ -z "${INIT_SOURCED}" -o "${INIT_SOURCED}" != "TRUE" ]; then
}
html_msg()
{
- if [ "$1" -ne "$2" ] ; then
+ if [ $1 -ne $2 ] ; then
html_failed "$3" "$4"
else
html_passed "$3" "$4"
diff --git a/tests/dbtests/dbtests.sh b/tests/dbtests/dbtests.sh
index 18c69a01e..7b1ee351f 100755
--- a/tests/dbtests/dbtests.sh
+++ b/tests/dbtests/dbtests.sh
@@ -170,7 +170,7 @@ dbtest_main()
# skipping the next two tests when user is root,
# otherwise they would fail due to rooty powers
- if [ $UID -ne 0 ] then
+ if [ $UID -ne 0 ]; then
${BINDIR}/dbtest -d $RONLY_DIR
ret=$?
if [ $ret -ne 46 ]; then
@@ -181,7 +181,7 @@ dbtest_main()
else
html_passed "Skipping Dbtest r/w in a readonly dir because user is root"
fi
- if [ $UID -ne 0 ] then
+ if [ $UID -ne 0 ]; then
${BINDIR}/certutil -D -n "TestUser" -d .
ret=$?
if [ $ret -ne 255 ]; then