summaryrefslogtreecommitdiff
path: root/source4/script/tests
diff options
context:
space:
mode:
Diffstat (limited to 'source4/script/tests')
-rwxr-xr-xsource4/script/tests/selftest.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh
index 880a2f097b..c4f8a5a5a9 100755
--- a/source4/script/tests/selftest.sh
+++ b/source4/script/tests/selftest.sh
@@ -3,8 +3,11 @@ DOMAIN=SAMBADOMAIN
USERNAME=administrator
REALM=$DOMAIN
PASSWORD=penguin
-ROOT=$USER
SRCDIR=`pwd`
+ROOT=$USER
+if test -z "$ROOT"; then
+ ROOT=`whoami`
+fi
if [ $# -lt 1 ]
then