diff mbox series

[meta-python,5/6] python3-fsspec: Skip network test in ptest

Message ID 20261025214330.653779-5-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-oe,1/6] fftw: Fix planner hang on musl with CLOCK_SGI_CYCLE | expand

Commit Message

Khem Raj Oct. 25, 2026, 9:43 p.m. UTC
test_async_cat_file_ranges fetches a file from a public S3 bucket, which
fails without DNS and internet access on the target, as in sysvinit
qemu images where resolv.conf is empty.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 .../recipes-devtools/python/python3-fsspec/run-ptest        | 6 ++++++
 .../recipes-devtools/python/python3-fsspec_2026.9.0.bb      | 2 ++
 2 files changed, 8 insertions(+)
 create mode 100755 meta-python/recipes-devtools/python/python3-fsspec/run-ptest
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-fsspec/run-ptest b/meta-python/recipes-devtools/python/python3-fsspec/run-ptest
new file mode 100755
index 0000000000..544881a837
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-fsspec/run-ptest
@@ -0,0 +1,6 @@ 
+#!/bin/sh
+
+# test_async_cat_file_ranges fetches a file from a public S3 bucket, so it
+# needs working DNS and internet access from the target.
+pytest --automake \
+    --deselect implementations/tests/test_reference.py::test_async_cat_file_ranges
diff --git a/meta-python/recipes-devtools/python/python3-fsspec_2026.9.0.bb b/meta-python/recipes-devtools/python/python3-fsspec_2026.9.0.bb
index cacafc88d6..6b2b4c33b1 100644
--- a/meta-python/recipes-devtools/python/python3-fsspec_2026.9.0.bb
+++ b/meta-python/recipes-devtools/python/python3-fsspec_2026.9.0.bb
@@ -6,6 +6,8 @@  LIC_FILES_CHKSUM = "file://LICENSE;md5=b38a11bf4dcdfc66307f8515ce1fbaa6"
 SRC_URI = "git://github.com/fsspec/filesystem_spec;protocol=https;branch=master;tag=${PV}"
 SRCREV = "0f76baaae4a227b085b18e8469e6cc1792a95ade"

+SRC_URI += "file://run-ptest"
+
 inherit python_hatchling ptest-python-pytest

 DEPENDS = "python3-hatch-vcs-native python3-hatchling-native"