mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
The host variant of python-xmodem will be needed by Snagboot, so this commit enables it. We also add a very simple test case that simply makes sure we can import the module. Testing xmodem more extensively is difficult without an actual serial port to open. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
10 lines
253 B
Python
10 lines
253 B
Python
import infra.basetest
|
|
|
|
|
|
class TestHostPythonXmodem(infra.basetest.BRHostPkgTest):
|
|
hostpkgs = ["host-python-xmodem"]
|
|
|
|
def test_run(self):
|
|
cmd = ["host/bin/python3", "-c", "import xmodem"]
|
|
infra.run_cmd_on_host(self.builddir, cmd)
|