git://git.exim.org
/
users
/
heiko
/
exim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
488e894
)
Testsuite: Add $USER to env if missing
author
Heiko Schlittermann (HS12)
<hs@schlittermann.de>
Wed, 27 May 2015 21:41:35 +0000
(23:41 +0200)
committer
Heiko Schlittermann (HS12)
<hs@schlittermann.de>
Wed, 27 May 2015 21:41:35 +0000
(23:41 +0200)
test/runtest
patch
|
blob
|
history
diff --git
a/test/runtest
b/test/runtest
index 157ff050a62622a9b9ea0ba8831cab7e3920ca62..c95e5a0214f6cdfd8898d94e0382da07770eb002 100755
(executable)
--- 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};
###############################################################################