Fix -r test, knownfailure return code.
authorJelmer Vernooij <jelmer@samba.org>
Tue, 15 Apr 2008 23:10:20 +0000 (01:10 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Tue, 15 Apr 2008 23:10:20 +0000 (01:10 +0200)
(This used to be commit 4f0954905a902381e66eec74fd30ff7adde232b8)

testprogs/blackbox/test_wbinfo.sh

index 2ca4f23a2a475c077f28a96d351dab57d3218aa0..b309b302dd33d21c6101f278db73e0d702b91944 100755 (executable)
@@ -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`