summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-03-10 17:09:03 +0100
committerArthur de Jong <arthur@arthurdejong.org>2013-03-10 23:15:26 +0100
commit24c565cf053c0149e3b0a5098284314fed248c55 (patch)
tree79eb4bc46615654279cf34fc2f1cb5ae8bbaa048 /tests
parent6a926212484bcd423aa265341eb198ef2bc9b410 (diff)
small portability fix in test_pamcmds.sh
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_pamcmds.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_pamcmds.sh b/tests/test_pamcmds.sh
index 798cafd..a50205c 100755
--- a/tests/test_pamcmds.sh
+++ b/tests/test_pamcmds.sh
@@ -2,7 +2,7 @@
# test_pamcmds.sh - test script to start test_pamcmds.expect
#
-# Copyright (C) 2011 Arthur de Jong
+# Copyright (C) 2011, 2013 Arthur de Jong
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
@@ -29,8 +29,10 @@ srcdir="${srcdir-`dirname "$0"`}"
# check if we have expect installed
EXPECT="$(which expect 2> /dev/null || true)"
-if ! [ -x "$EXPECT" ]
+if [ -x "$EXPECT" ]
then
+ :
+else
echo "$0: expect not found, not running tests"
exit 77
fi