From 895ddecbf0ce674422032b88c4aa41c45c97186f Mon Sep 17 00:00:00 2001 From: "Heiko Schlittermann (HS12)" Date: Wed, 27 May 2015 23:41:35 +0200 Subject: Testsuite: Add $USER to env if missing --- test/runtest | 4 ++++ 1 file changed, 4 insertions(+) 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}; ############################################################################### -- cgit v1.2.3