[Buildroot] [git commit] support/testing/tests/package/test_python_serial.py: new test case

Julien Olivain ju.o at free.fr
Thu Oct 30 20:10:44 UTC 2025


commit: https://git.buildroot.net/buildroot/commit/?id=875b4f204cc13d1f0b491a9a00614db8e4c5846d
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

This quickly tests that the host-python-serial package at least
minimally works.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Signed-off-by: Julien Olivain <ju.o at free.fr>
---
 DEVELOPERS                                          |  1 +
 support/testing/tests/package/test_python_serial.py | 12 ++++++++++++
 2 files changed, 13 insertions(+)

diff --git a/DEVELOPERS b/DEVELOPERS
index 29aa132a78..ed6c673cc4 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3289,6 +3289,7 @@ F:	support/testing/tests/package/test_python_crccheck.py
 F:	support/testing/tests/package/test_python_flask.py
 F:	support/testing/tests/package/test_python_flask_expects_json.py
 F:	support/testing/tests/package/test_python_git.py
+F:	support/testing/tests/package/test_python_serial.py
 F:	support/testing/tests/package/test_python_unittest_xml_reporting.py
 F:	support/testing/tests/toolchain/test_external_arm.py
 F:	toolchain/
diff --git a/support/testing/tests/package/test_python_serial.py b/support/testing/tests/package/test_python_serial.py
new file mode 100644
index 0000000000..c4b05a10fb
--- /dev/null
+++ b/support/testing/tests/package/test_python_serial.py
@@ -0,0 +1,12 @@
+import infra.basetest
+
+
+class TestHostPythonSerial(infra.basetest.BRHostPkgTest):
+    hostpkgs = ["host-python-serial"]
+
+    def test_run(self):
+        cmd = ["host/bin/python3", "-c", "import serial"]
+        infra.run_cmd_on_host(self.builddir, cmd)
+
+        cmd = ["host/bin/python3", "-m", "serial.tools.list_ports"]
+        infra.run_cmd_on_host(self.builddir, cmd)


More information about the buildroot mailing list