fuse_mntdir = '/tmp/tmp6y3j8t_t.swh-fuse-test'
def test_cat_file(fuse_mntdir):
readme_path = Path(fuse_mntdir, "archive", ROOT_SWHID, "README")
expected = """
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel."""
> with open(readme_path, "r") as f:
E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp6y3j8t_t.swh-fuse-test/archive/swh:1:dir:9eb62ef7dd283f7385e7d31af6344d9feedd25de/README'
.tox/py3/lib/python3.7/site-packages/swh/fuse/tests/test_content.py:32: FileNotFoundError
TEST RESULT
TEST RESULT
- Run At
- Oct 1 2020, 3:31 PM