Disable tests for fuse-sshd

Tests require sshd to be up and running.

Previously they were skipped anyway:

+ python3 -m pytest test/
============================= test session starts ==============================
platform linux -- Python 3.12.0b4, pytest-7.3.2, pluggy-1.0.0 -- /usr/bin/python3
cachedir: .pytest_cache
rootdir: /builddir/build/BUILD/sshfs-3.7.3/redhat-linux-build/test
configfile: pytest.ini
collecting ... collected 16 items
test/test_sshfs.py::test_sshfs[True-True-0-False] SKIPPED (FUSE kern...) [  6%]
test/test_sshfs.py::test_sshfs[True-True-0-True] SKIPPED (FUSE kerne...) [ 12%]
test/test_sshfs.py::test_sshfs[True-True-1-False] SKIPPED (FUSE kern...) [ 18%]
test/test_sshfs.py::test_sshfs[True-True-1-True] SKIPPED (FUSE kerne...) [ 25%]
test/test_sshfs.py::test_sshfs[True-False-0-False] SKIPPED (FUSE ker...) [ 31%]
test/test_sshfs.py::test_sshfs[True-False-0-True] SKIPPED (FUSE kern...) [ 37%]
test/test_sshfs.py::test_sshfs[True-False-1-False] SKIPPED (FUSE ker...) [ 43%]
test/test_sshfs.py::test_sshfs[True-False-1-True] SKIPPED (FUSE kern...) [ 50%]
test/test_sshfs.py::test_sshfs[False-True-0-False] SKIPPED (FUSE ker...) [ 56%]
test/test_sshfs.py::test_sshfs[False-True-0-True] SKIPPED (FUSE kern...) [ 62%]
test/test_sshfs.py::test_sshfs[False-True-1-False] SKIPPED (FUSE ker...) [ 68%]
test/test_sshfs.py::test_sshfs[False-True-1-True] SKIPPED (FUSE kern...) [ 75%]
test/test_sshfs.py::test_sshfs[False-False-0-False] SKIPPED (FUSE ke...) [ 81%]
test/test_sshfs.py::test_sshfs[False-False-0-True] SKIPPED (FUSE ker...) [ 87%]
test/test_sshfs.py::test_sshfs[False-False-1-False] SKIPPED (FUSE ke...) [ 93%]
test/test_sshfs.py::test_sshfs[False-False-1-True] SKIPPED (FUSE ker...) [100%]
=============================== warnings summary ===============================
test/conftest.py:66
  /builddir/build/BUILD/sshfs-3.7.3/redhat-linux-build/test/conftest.py:66: PytestDeprecationWarning: @pytest.yield_fixture is deprecated.
  Use @pytest.fixture instead; they are the same.
    @pytest.yield_fixture(autouse=True)
test/conftest.py:12
  /builddir/build/BUILD/sshfs-3.7.3/redhat-linux-build/test/conftest.py:12: PytestDeprecationWarning: The hookimpl pytest_pyfunc_call uses old-style configuration options (marks or attributes).
  Please use the pytest.hookimpl(hookwrapper=True) decorator instead
   to configure the hooks.
   See https://docs.pytest.org/en/latest/deprecations.html#configuring-hook-specs-impls-using-markers
    @pytest.mark.hookwrapper
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
SKIPPED [16] test/test_sshfs.py:33: FUSE kernel module does not seem to be loaded
======================= 16 skipped, 2 warnings in 0.09s ========================

Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
This commit is contained in:
Peter Lemenkov 2023-10-21 09:43:54 +02:00
parent a67fc62cde
commit 828612808a

View File

@ -63,7 +63,8 @@ sed -i "s/'fusermount'/'fusermount3'/g" test/util.py
%check
cd %{_vpath_builddir}
python3 -m pytest test/
# FIXME requires sshd running? Previously tests were just skipped.
#python3 -m pytest test/
%files