From: Björn Baumbach Date: Wed, 22 Feb 2023 19:20:51 +0000 (+0000) Subject: testprogs: net ads dns: do not increase the $failed counter in "net ads dns" when... X-Git-Tag: talloc-2.4.1~1494 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74dbfc4da6d8693ea3a1b1ac174dba83151cff7a;p=thirdparty%2Fsamba.git testprogs: net ads dns: do not increase the $failed counter in "net ads dns" when test is OK Signed-off-by: Björn Baumbach Reviewed-by: Andrew Bartlett --- diff --git a/testprogs/blackbox/test_net_ads_dns.sh b/testprogs/blackbox/test_net_ads_dns.sh index 5fc735183a9..b0c5d67083e 100755 --- a/testprogs/blackbox/test_net_ads_dns.sh +++ b/testprogs/blackbox/test_net_ads_dns.sh @@ -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" \