Tests - Tweak to the running-as-root check
[tpg/opendispense2.git] / tests / TEST_basic.sh
index 76c6490..d128f8d 100755 (executable)
@@ -5,7 +5,7 @@ TESTNAME=basic
 . _common.sh
 
 # (CI runs as root, and root is auto-added by databse creation)
-if [[ "$USER" -ne "root" ]]; then
+if [[ "x$USER" != "xroot" ]]; then
        # Ensure that the databse doesn't already contain the current user
        # - 1. Protects against running the test against the production database
        # - 2. Allows adding the current user as an admin

UCC git Repository :: git.ucc.asn.au