mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-06 15:43:51 -09:00
This commit adds a host package for the Python 'fs' module, needed as a dependency of pyfatfs, itself needed by Snagboot. Homepage: https://pypi.org/project/fs/ In addition, a very simple test case is adding to check that host-python-fs is minimally working. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Julien Olivain <ju.o@free.fr>
10 lines
286 B
Python
10 lines
286 B
Python
import infra.basetest
|
|
|
|
|
|
class TestHostPythonFs(infra.basetest.BRHostPkgTest):
|
|
hostpkgs = ["host-python-fs"]
|
|
|
|
def test_run(self):
|
|
cmd = ["host/bin/python3", "-c", "import fs; fs.open_fs('mem://'); fs.open_fs('temp://')"]
|
|
infra.run_cmd_on_host(self.builddir, cmd)
|