Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UCC
OpenDispense2
Commits
067245e3
Commit
067245e3
authored
Sep 19, 2021
by
John Hodge
Browse files
Tests - Tweak to the running-as-root check
parent
4848b385
Pipeline
#387
failed with stages
in 1 minute
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/TEST_basic.sh
View file @
067245e3
...
...
@@ -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
"
!=
"
x
root"
]]
;
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment