From 3c03884844384020aac5a789aa36a1453bf57b78 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 11 Oct 2021 20:10:37 +0800 Subject: [PATCH] Gitlab CI - Attempt to create+use a non-root user --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index da4f6c6..7e86b2c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,6 +27,7 @@ test: stage: test before_script: # Install the -dev versions to avoid needing to find the actual library names - - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident netcat + - apt update && apt -y install libncurses-dev libmodbus-dev libsqlite3-dev libident netcat sqlite3 + - useradd testuser && chown -R testuser . script: - - cd tests && ./TEST_basic.sh + - cd tests && su -l -c './TEST_basic.sh' testuser -- 2.20.1