aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2019-08-22 12:08:35 +0000
committerKristof Provost <kp@FreeBSD.org>2021-01-03 20:26:50 +0000
commit0c772900dcae7ded1c8f1ca336878322a5483ffe (patch)
treefb83eda067fd6b3090d84a56e64beb30bafb8999
parentf0cb921e361a8dcefec6c469839e26e6d79f958f (diff)
Fix path issues after r351212
This fixes sys.netpfil.pf.forward.v4 and sys.netpfil.pf.icmp.cve_2019_5598 failures in CI system. Sponsored by: The FreeBSD Foundation (cherry picked from commit cdac716946b14572d8c5c764a99617fe5a176da2)
-rwxr-xr-xtests/sys/netpfil/pf/forward.sh2
-rwxr-xr-xtests/sys/netpfil/pf/icmp.sh5
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/sys/netpfil/pf/forward.sh b/tests/sys/netpfil/pf/forward.sh
index 0d9c9d7787a3..5cb22e9c1384 100755
--- a/tests/sys/netpfil/pf/forward.sh
+++ b/tests/sys/netpfil/pf/forward.sh
@@ -32,7 +32,7 @@ v4_body()
route add -net 198.51.100.0/24 192.0.2.2
# Sanity check, can we forward ICMP echo requests without pf?
- atf_check -s exit:0 $(atf_get_srcdir)/pft_ping.py \
+ atf_check -s exit:0 ${common_dir}/pft_ping.py \
--sendif ${epair_send}a \
--to 198.51.100.3 \
--recvif ${epair_recv}a
diff --git a/tests/sys/netpfil/pf/icmp.sh b/tests/sys/netpfil/pf/icmp.sh
index a02cbf45e34c..fbb62da09efd 100755
--- a/tests/sys/netpfil/pf/icmp.sh
+++ b/tests/sys/netpfil/pf/icmp.sh
@@ -2,6 +2,8 @@
. $(atf_get_srcdir)/utils.subr
+common_dir=$(atf_get_srcdir)/../common
+
atf_test_case "cve_2019_5598" "cleanup"
cve_2019_5598_head()
{
@@ -32,7 +34,8 @@ cve_2019_5598_body()
"pass in proto udp to 198.51.100.3 port 53" \
"pass out proto udp to 198.51.100.3 port 53"
- atf_check -s exit:0 $(atf_get_srcdir)/CVE-2019-5598.py \
+ atf_check -s exit:0 env PYTHONPATH=${common_dir} \
+ $(atf_get_srcdir)/CVE-2019-5598.py \
--sendif ${epair_in}a \
--recvif ${epair_out}a \
--src 192.0.2.1 \