]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
testprogs: net ads dns: do not increase the $failed counter in "net ads dns" when...
authorBjörn Baumbach <bb@sernet.de>
Wed, 22 Feb 2023 19:20:51 +0000 (19:20 +0000)
committerBjörn Baumbach <bb@sernet.de>
Fri, 3 Mar 2023 11:58:34 +0000 (11:58 +0000)
Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
testprogs/blackbox/test_net_ads_dns.sh

index 5fc735183a9c1334951d11211f89610896a2321d..b0c5d67083ed605c993adb0cdfc0ca14cefc05ab 100755 (executable)
@@ -119,8 +119,9 @@ testit_grep_count \
        failed=$(expr $failed + 1)
 
 #Unprivileged users should not be able to overwrite other's names
-testit_expect_failure "Unprivileged users should not be able to modify existing names" \
-       $net_tool ads dns register $MACHINENAME.$REALM $UNPRIVIP -U$UNPRIVUSER%$UNPRIVPASS ||
+testit_expect_failure \
+       "Unprivileged users should not be able to modify existing names" \
+       $net_tool ads dns register $MACHINENAME.$REALM $UNPRIVIP -U$UNPRIVUSER%$UNPRIVPASS &&
        failed=$(expr $failed + 1)
 
 testit "We should be able to unregister the name $UNPRIVNAME.$REALM $IPADDRESS" \