mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-05 23:23:51 -09:00
This quickly tests that the host-python-serial package at least minimally works. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
13 lines
372 B
Python
13 lines
372 B
Python
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)
|