Files
buildroot/support/testing/tests/package/test_python_fs.py
Thomas Petazzoni f3ce010e98 package/python-fs: new package
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>
2025-10-30 21:16:31 +01:00

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)