From 74dbfc4da6d8693ea3a1b1ac174dba83151cff7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Baumbach?= Date: Wed, 22 Feb 2023 19:20:51 +0000 Subject: testprogs: net ads dns: do not increase the $failed counter in "net ads dns" when test is OK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Björn Baumbach Reviewed-by: Andrew Bartlett --- testprogs/blackbox/test_net_ads_dns.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'testprogs') 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" \ -- cgit v1.2.1