Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Dec 2018 09:57:30 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r341358 - head/tests/sys/netpfil/pf
Message-ID:  <201812010957.wB19vUMv032189@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kp
Date: Sat Dec  1 09:57:29 2018
New Revision: 341358
URL: https://svnweb.freebsd.org/changeset/base/341358

Log:
  pf tests: Make pass_block:noalias more robust
  
  Send several ICMPv6 echo requests. We've seen occasional failures with a
  single request.

Modified:
  head/tests/sys/netpfil/pf/pass_block.sh

Modified: head/tests/sys/netpfil/pf/pass_block.sh
==============================================================================
--- head/tests/sys/netpfil/pf/pass_block.sh	Sat Dec  1 05:58:33 2018	(r341357)
+++ head/tests/sys/netpfil/pf/pass_block.sh	Sat Dec  1 09:57:29 2018	(r341358)
@@ -107,21 +107,21 @@ noalias_body()
 		| cut -d % -f 1)
 
 	# Sanity check
-	atf_check -s exit:0 -o ignore ping6 -c 1 -x 1 2001:db8:42::2
-	atf_check -s exit:0 -o ignore ping6 -c 1 -x 1 ${linklocaladdr}%${epair}a
+	atf_check -s exit:0 -o ignore ping6 -c 3 -x 1 2001:db8:42::2
+	atf_check -s exit:0 -o ignore ping6 -c 3 -x 1 ${linklocaladdr}%${epair}a
 
 	jexec alcatraz pfctl -e
 	pft_set_rules alcatraz "block out inet6 from (${epair}b:0) to any"
 
-	atf_check -s exit:2 -o ignore ping6 -c 1 -x 1 2001:db8:42::2
+	atf_check -s exit:2 -o ignore ping6 -c 3 -x 1 2001:db8:42::2
 
 	# We should still be able to ping the link-local address
-	atf_check -s exit:0 -o ignore ping6 -c 1 -x 1 ${linklocaladdr}%${epair}a
+	atf_check -s exit:0 -o ignore ping6 -c 3 -x 1 ${linklocaladdr}%${epair}a
 
 	pft_set_rules alcatraz "block out inet6 from (${epair}b) to any"
 
 	# We cannot ping to the link-local address
-	atf_check -s exit:2 -o ignore ping6 -c 1 -x 1 ${linklocaladdr}%${epair}a
+	atf_check -s exit:2 -o ignore ping6 -c 3 -x 1 ${linklocaladdr}%${epair}a
 }
 
 noalias_cleanup()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812010957.wB19vUMv032189>