summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2015-11-28 01:27:49 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2015-11-28 13:27:06 +0100
commiteab57e0807c08fe8d3a5dcf02809c830f99fd972 (patch)
tree686c38d6eea95d03e243b1df034ed3f814a68ed8
parent668ae33adc17cdc445218be490604d5f900ac9f3 (diff)
tests: use id to get user/group instead of environment
debci seems to have a cleaner environment now and even if not we could never guess nogroup, so figure it out properly via 'id'. Git-Dch: Ignore
-rw-r--r--test/integration/framework4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/framework b/test/integration/framework
index de8a65d7a..292a7b958 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -383,11 +383,11 @@ EOF
confighashes 'SHA1' # these are tests, not security best-practices
# create some files in /tmp and look at user/group to get what this means
- TEST_DEFAULT_USER="$USER"
+ TEST_DEFAULT_USER="$(id -un)"
if [ "$(uname)" = 'GNU/kFreeBSD' ]; then
TEST_DEFAULT_GROUP='root'
else
- TEST_DEFAULT_GROUP="$USER"
+ TEST_DEFAULT_GROUP="$(id -gn)"
fi
# cleanup the environment a bit