diff mbox series

[meta-python,1/5] python3-betamax: skip the live-network hook tests in ptest

Message ID 20260912235141.2355852-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,1/5] python3-betamax: skip the live-network hook tests in ptest | expand

Commit Message

Khem Raj Sept. 12, 2026, 11:51 p.m. UTC
tests/integration/test_hooks.py records live https://httpbin.org
requests (no cassettes are shipped for them), so the ptest fails
whenever the service resets the connection, e.g.:

  FAIL: tests/integration/test_hooks.py:TestHooks.test_post_start_hook
  requests.exceptions.ConnectionError: ('Connection aborted.',
    ConnectionResetError(104, 'Connection reset by peer'))

The same tests pass when the service behaves (3 out of 3 runs in a
qemux86-64 VM), so they are flaky rather than broken. Leave them out
of the ptest run.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../recipes-devtools/python/python3-betamax/run-ptest        | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-betamax/run-ptest b/meta-python/recipes-devtools/python/python3-betamax/run-ptest
index 531af4d015..0acad79f97 100644
--- a/meta-python/recipes-devtools/python/python3-betamax/run-ptest
+++ b/meta-python/recipes-devtools/python/python3-betamax/run-ptest
@@ -8,4 +8,7 @@  if ! nslookup httpbin.org >/dev/null 2>&1 ; then
     echo "nameserver 8.8.8.8" > /etc/resolv.conf
 fi
 
-pytest --automake
+# tests/integration/test_hooks.py records live https://httpbin.org requests
+# (no cassettes are shipped for it) and fails whenever the service resets
+# the connection, so leave it out.
+pytest --automake --ignore=tests/integration/test_hooks.py