summaryrefslogtreecommitdiffstats
path: root/testprogs
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-16 01:10:20 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-04-16 01:10:20 +0200
commit83c8d6cc89feeec797b9185fb967b24c9c088950 (patch)
treefe9dea1cf61b747eb52c3b27240686bb9d0bbdf8 /testprogs
parentc60a914052676aebb4ecdb94039c866862c56498 (diff)
downloadsamba-83c8d6cc89feeec797b9185fb967b24c9c088950.tar.gz
samba-83c8d6cc89feeec797b9185fb967b24c9c088950.tar.xz
samba-83c8d6cc89feeec797b9185fb967b24c9c088950.zip
Fix -r test, knownfailure return code.
(This used to be commit 4f0954905a902381e66eec74fd30ff7adde232b8)
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/test_wbinfo.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/testprogs/blackbox/test_wbinfo.sh b/testprogs/blackbox/test_wbinfo.sh
index 2ca4f23a2a4..b309b302dd3 100755
--- a/testprogs/blackbox/test_wbinfo.sh
+++ b/testprogs/blackbox/test_wbinfo.sh
@@ -56,8 +56,10 @@ knownfail() {
status=$?
if [ x$status = x0 ]; then
echo "failure: $name [unexpected success]"
+ status=1
else
echo "knownfail: $name"
+ status=0
fi
return $status
}
@@ -178,7 +180,7 @@ testit "wbinfo -i against $TARGET" $wbinfo -i "$DOMAIN/$USERNAME" || failed=`exp
# this does not work
knownfail "wbinfo --uid-info against $TARGET" $wbinfo --uid-info $admin_sid
knownfail "wbinfo --group-info against $TARGET" $wbinfo --group-info "S-1-22-2-0"
-knownfail "wbinfo -r against $TARGET" $wbinfo "$DOMAIN/$USERNAME"
+knownfail "wbinfo -r against $TARGET" $wbinfo -r "$DOMAIN/$USERNAME"
testit "wbinfo --user-domgroups against $TARGET" $wbinfo --user-domgroups $admin_sid || failed=`expr $failed + 1`