mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-05 23:23:51 -09:00
The host variant of python-pyusb will be neded for Snagboot, so it is enabled with this commit. In addition, we're adding a very simple test case to validate that host-python-pyusb minimally works. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
10 lines
248 B
Python
10 lines
248 B
Python
import infra.basetest
|
|
|
|
|
|
class TestHostPythonPyusb(infra.basetest.BRHostPkgTest):
|
|
hostpkgs = ["host-python-pyusb"]
|
|
|
|
def test_run(self):
|
|
cmd = ["host/bin/python3", "-c", "import usb"]
|
|
infra.run_cmd_on_host(self.builddir, cmd)
|