From 73c158cd300ddf8159a4bf459f1c69c6f926a39a Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 25 Oct 2026 16:25:19 -0700 Subject: [PATCH] python3-scapy: Skip live whois tests in ptest "Whois request" and "AS resolver - IPv6" only query public whois servers and upstream notes they often fail. "AS resolver - IPv6" failed intermittently in testimage on qemuarm64 and passed on a rerun. Tag both with skipped_ptest so run-ptest leaves them out. AI-Generated: Uses Claude Code Signed-off-by: Khem Raj --- ...-test-skip-live-whois-tests-in-ptest.patch | 43 +++++++++++++++++++ .../python/python3-scapy_2.7.0.bb | 1 + 2 files changed, 44 insertions(+) create mode 100644 meta-networking/recipes-devtools/python/python3-scapy/0005-test-skip-live-whois-tests-in-ptest.patch diff --git a/meta-networking/recipes-devtools/python/python3-scapy/0005-test-skip-live-whois-tests-in-ptest.patch b/meta-networking/recipes-devtools/python/python3-scapy/0005-test-skip-live-whois-tests-in-ptest.patch new file mode 100644 index 0000000000..479500abe9 --- /dev/null +++ b/meta-networking/recipes-devtools/python/python3-scapy/0005-test-skip-live-whois-tests-in-ptest.patch @@ -0,0 +1,43 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sun, 25 Oct 2026 15:56:41 -0700 +Subject: [PATCH] test: skip live whois tests in ptest + +"Whois request" and "AS resolver - IPv6" only query public whois +servers, and upstream already notes that they often fail. In OE +testimage runs "AS resolver - IPv6" fails intermittently and turns the +whole ptest result into a failure, while it passes on a rerun. + +Tag them with "skipped_ptest" so run-ptest filters them out with +-K skipped_ptest. "AS resolvers" is kept since it also carries the +offline riswhois and cymru parser checks. + +Upstream-Status: Inappropriate [OE-specific] + +Signed-off-by: Khem Raj +--- + test/regression.uts | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/regression.uts b/test/regression.uts +index b6bb9d6..c818e4c 100644 +--- a/test/regression.uts ++++ b/test/regression.uts +@@ -1781,7 +1781,7 @@ def _test(): + retry_test(_test) + + = Whois request +-~ netaccess IP as_resolvers ++~ netaccess IP as_resolvers skipped_ptest + * This test retries on failure because it often fails + def _test(): + IP(src="8.8.8.8").whois() +@@ -1825,7 +1825,7 @@ assert len(tmp) == 3 + assert [l[1] for l in tmp] == ['AS24776', 'AS36459', 'AS26496'] + + = AS resolver - IPv6 +-~ netaccess IP as_resolvers ++~ netaccess IP as_resolvers skipped_ptest + * This test retries on failure because it often fails + + def _test(): diff --git a/meta-networking/recipes-devtools/python/python3-scapy_2.7.0.bb b/meta-networking/recipes-devtools/python/python3-scapy_2.7.0.bb index aa570308a9..4995f8e2cd 100644 --- a/meta-networking/recipes-devtools/python/python3-scapy_2.7.0.bb +++ b/meta-networking/recipes-devtools/python/python3-scapy_2.7.0.bb @@ -22,6 +22,7 @@ SRC_URI = "git://github.com/secdev/scapy.git;branch=master;protocol=https;tag=v$ file://0002-main-initialize-banner-for-the-default-Python-shell.patch \ file://0003-libpcap-load-libpcap-even-when-find_library-cannot-l.patch \ file://0004-test-don-t-depend-on-libc-formatting-of-IPv4-compati.patch \ + file://0005-test-skip-live-whois-tests-in-ptest.patch \ file://run-ptest" UPSTREAM_CHECK_COMMITS = "1"