mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-11-14 03:57:15 +00:00
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 <khem.raj@oss.qualcomm.com>
This commit is contained in:
2 files changed
+44
No files matched your search
+43
@@ -0,0 +1,43 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
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 <raj.khem@gmail.com>
|
||||
---
|
||||
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():
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user