summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-05-27 23:41:35 +0200
committerHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-05-27 23:41:35 +0200
commit895ddecbf0ce674422032b88c4aa41c45c97186f (patch)
tree1329eaa13a367ddae0e19d3afb5745fd4cc344fe
parent488e89462dcfe7db675c8d33cbd25d38f3035902 (diff)
Testsuite: Add $USER to env if missing
-rwxr-xr-xtest/runtest4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/runtest b/test/runtest
index 157ff050a..c95e5a021 100755
--- a/test/runtest
+++ b/test/runtest
@@ -83,6 +83,10 @@ $parm_port_d4 = 1228; # Additional for daemon
# Manually set locale
$ENV{'LC_ALL'} = 'C';
+# In some environments USER does not exists, but we
+# need it for some test(s)
+$ENV{USER} = getpwuid($>)
+ if not exists $ENV{USER};
###############################################################################