diff options
author | Björn Baumbach <bb@sernet.de> | 2023-02-22 19:20:51 +0000 |
---|---|---|
committer | Björn Baumbach <bb@sernet.de> | 2023-03-03 11:58:34 +0000 |
commit | 74dbfc4da6d8693ea3a1b1ac174dba83151cff7a (patch) | |
tree | 5adc1d11fc63ca14429f4913492afcbdccf09614 /testprogs | |
parent | cc3696f51d10796841ffd26aea5fae7e3154b803 (diff) | |
download | samba-74dbfc4da6d8693ea3a1b1ac174dba83151cff7a.tar.gz |
testprogs: net ads dns: do not increase the $failed counter in "net ads dns" when test is OK
Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-x | testprogs/blackbox/test_net_ads_dns.sh | 5 |
1 files changed, 3 insertions, 2 deletions
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" \ |