test: make system test users configurable

This commit is contained in:
Miroslav Lichvar
2024-11-14 10:53:35 +01:00
parent c85ec4ff0f
commit bb8050d884
5 changed files with 22 additions and 8 deletions

View File

@@ -3,10 +3,11 @@
TEST_LIBDIR=${CHRONY_LIBDIR:-/var/lib/chrony}
TEST_LOGDIR=${CHRONY_LOGDIR:-/var/log/chrony}
TEST_RUNDIR=${CHRONY_RUNDIR:-/var/run/chrony}
TEST_PRIVDROP_USER=$(ls -ld "$TEST_RUNDIR" 2> /dev/null | awk '{print $3}')
. ./test.common
user=$(ls -ld "$TEST_RUNDIR" 2> /dev/null | awk '{print $3}')
priv_drop=1
test_start "system directories"