summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBrandon Philips <brandon@ifup.org>2009-02-23 00:40:21 +0100
committerAndreas Gruenbacher <agruen@suse.de>2009-02-23 02:36:41 +0100
commitda86c6dec3c7273b693864a25fa3a1af4e6ecd9b (patch)
tree5e4269825e930a49208a5a4be850dd504a8e49f7 /test
parent8250c29bb6c51b7bb9292fe2052db92cfdc0824d (diff)
downloadacl-da86c6dec3c7273b693864a25fa3a1af4e6ecd9b.tar.gz
Create two ENV variables TUSER and TGROUP to get the user/group running the test
Signed-off-by: Brandon Philips <bphilips@suse.de> Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Diffstat (limited to 'test')
-rwxr-xr-xtest/run3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/run b/test/run
index 40b3565..0e0dee5 100755
--- a/test/run
+++ b/test/run
@@ -53,6 +53,9 @@ if (isatty(fileno(STDOUT))) {
$FAILED = "\033[31m\033[1m" . $FAILED . "\033[m";
}
+$ENV{"TUSER"} = getpwuid($>);
+$ENV{"TGROUP"} = getgrgid($));
+
sub exec_test($$);
sub process_test($$$$);