From 067245e37fea88320ad8b431b4410ae384fc1f32 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sun, 19 Sep 2021 15:13:05 +0800 Subject: [PATCH] Tests - Tweak to the running-as-root check --- tests/TEST_basic.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/TEST_basic.sh b/tests/TEST_basic.sh index 76c6490..d128f8d 100755 --- a/tests/TEST_basic.sh +++ b/tests/TEST_basic.sh @@ -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 -- 2.20.1