Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Mar 2021 12:55:57 GMT
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 98202829d1b3 - main - tests/sys/netpfil/pf: Add missing python3 requirements
Message-ID:  <202103011255.121CtvCc046983@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by arichardson:

URL: https://cgit.FreeBSD.org/src/commit/?id=98202829d1b3727a8706f45d052fc9e9507b562b

commit 98202829d1b3727a8706f45d052fc9e9507b562b
Author:     Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2021-02-23 19:04:01 +0000
Commit:     Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2021-03-01 12:53:45 +0000

    tests/sys/netpfil/pf: Add missing python3 requirements
    
    This also fixes a typo in the dup test that caused the head function to
    not be called. On my test system without python3 the tests are now
    skipped instead of failing.
    
    Reviewed By:    kp
    Differential Revision: https://reviews.freebsd.org/D28903
---
 tests/sys/netpfil/pf/checksum.sh | 1 +
 tests/sys/netpfil/pf/dup.sh      | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/sys/netpfil/pf/checksum.sh b/tests/sys/netpfil/pf/checksum.sh
index 778ae1cd6e9f..836bc1233963 100644
--- a/tests/sys/netpfil/pf/checksum.sh
+++ b/tests/sys/netpfil/pf/checksum.sh
@@ -32,6 +32,7 @@ unaligned_head()
 {
 	atf_set descr 'Test unaligned checksum updates'
 	atf_set require.user root
+	atf_set require.progs scapy
 }
 
 unaligned_body()
diff --git a/tests/sys/netpfil/pf/dup.sh b/tests/sys/netpfil/pf/dup.sh
index 7b9a91804e96..3b3bef976fc2 100644
--- a/tests/sys/netpfil/pf/dup.sh
+++ b/tests/sys/netpfil/pf/dup.sh
@@ -30,10 +30,11 @@
 common_dir=$(atf_get_srcdir)/../common
 
 atf_test_case "dup_to" "cleanup"
-do_to_head()
+dup_to_head()
 {
 	atf_set descr 'dup-to test'
 	atf_set require.user root
+	atf_set require.progs scapy
 }
 
 dup_to_body()



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