From 875b4f204cc13d1f0b491a9a00614db8e4c5846d Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Sat, 18 Oct 2025 21:43:02 +0200 Subject: [PATCH] support/testing/tests/package/test_python_serial.py: new test case This quickly tests that the host-python-serial package at least minimally works. Signed-off-by: Thomas Petazzoni Signed-off-by: Julien Olivain --- DEVELOPERS | 1 + support/testing/tests/package/test_python_serial.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 support/testing/tests/package/test_python_serial.py 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)