Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/test_nsscmds.sh
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-04-15 21:10:57 +0200
committerArthur de Jong <arthur@arthurdejong.org>2011-04-15 21:10:57 +0200
commit984cee3efe542f992e64d57660e842065a5cf018 (patch)
tree67f6a4bfde6147e5dc6d05dd2d2761f4a84e9359 /tests/test_nsscmds.sh
parent31bbfebc95577f5df9be8ec70640180ec105fb02 (diff)
allow running test_{nss,pam}cmds tests from another directory
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1424 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'tests/test_nsscmds.sh')
-rwxr-xr-xtests/test_nsscmds.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_nsscmds.sh b/tests/test_nsscmds.sh
index 33efae6..743752e 100755
--- a/tests/test_nsscmds.sh
+++ b/tests/test_nsscmds.sh
@@ -27,7 +27,7 @@
set -e
# find source directory
-srcdir="${srcdir-"."}"
+srcdir="${srcdir-`dirname "$0"`}"
# ensure that we are running in the test environment
. "$srcdir/in_testenv.sh"