Blob Blame History Raw
diff --git a/tests/dbtests/dbtests.sh b/tests/dbtests/dbtests.sh
--- a/tests/dbtests/dbtests.sh
+++ b/tests/dbtests/dbtests.sh
@@ -165,28 +165,28 @@ dbtest_main()
     # opens immediately see the files are readonly.  As a
     # workaround we open the files once first.  (Bug 185074)
     if [ "${OS_ARCH}" = "Darwin" ]; then
         cat $RONLY_DIR/* > /dev/null
     fi
 
     # 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
       html_failed "Dbtest r/w succeeded in a readonly directory $ret"
     else
       html_passed "Dbtest r/w didn't work in an readonly dir $ret" 
     fi
     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
       html_failed "Certutil succeeded in deleting a cert in a readonly directory $ret"
     else
       html_passed "Certutil didn't work in an readonly dir $ret"
     fi
     else