diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-16 01:10:20 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-16 01:10:20 +0200 |
commit | 83c8d6cc89feeec797b9185fb967b24c9c088950 (patch) | |
tree | fe9dea1cf61b747eb52c3b27240686bb9d0bbdf8 /testprogs | |
parent | c60a914052676aebb4ecdb94039c866862c56498 (diff) | |
download | samba-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-x | testprogs/blackbox/test_wbinfo.sh | 4 |
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` |