aboutsummaryrefslogtreecommitdiffstats
path: root/test/util.py
AgeCommit message (Collapse)AuthorLines
2023-04-07Fix PytestReturnNotNoneWarningMatthias Goergens-2/+4
``` test_examples.py::test_printcap /usr/local/lib/python3.9/dist-packages/_pytest/python.py:199: PytestReturnNotNoneWarning: Expected None, but test_examples.py::test_printcap returned ((7, 38), {'FUSE_CAP_READDIRPLUS_AUTO', 'FUSE_CAP_ASYNC_DIO', 'FUSE_CAP_SPLICE_READ', 'FUSE_CAP_CACHE_SYMLINKS', 'FUSE_CAP_IOCTL_DIR', 'FUSE_CAP_NO_OPENDIR_SUPPORT', 'FUSE_CAP_NO_OPEN_SUPPORT', 'FUSE_CAP_POSIX_LOCKS', 'FUSE_CAP_READDIRPLUS', 'FUSE_CAP_POSIX_ACL', 'FUSE_CAP_ATOMIC_O_TRUNC', 'FUSE_CAP_SPLICE_MOVE', 'FUSE_CAP_EXPORT_SUPPORT', 'FUSE_CAP_FLOCK_LOCKS', 'FUSE_CAP_EXPLICIT_INVAL_DATA', 'FUSE_CAP_EXPIRE_ONLY', 'FUSE_CAP_DONT_MASK', 'FUSE_CAP_WRITEBACK_CACHE', 'FUSE_CAP_AUTO_INVAL_DATA', 'FUSE_CAP_PARALLEL_DIROPS', 'FUSE_CAP_SPLICE_WRITE', 'FUSE_CAP_ASYNC_READ'}), which will be an error in a future version of pytest. Did you mean to use `assert` instead of `return`? warnings.warn( ```
2018-11-24Kill filesystem process on test cleanup.Nikolaus Rath-1/+6
2018-10-09Add unprivileged option in `mount.fuse3`Mattias Nissler-0/+9
The unprivileged option allows to run the FUSE file system process without privileges by dropping capabilities and preventing them from being re-acquired via setuid / fscaps etc. To accomplish this, mount.fuse sets up the `/dev/fuse` file descriptor and mount itself and passes the file descriptor via the `/dev/fd/%u` mountpoint syntax to the FUSE file system.
2018-03-28Fix build error on DragonFlyBSD (sync with other *BSD) (#240)Tomohiro Kusumi-3/+3
DragonFlyBSD has no "bsd" in uname, so add 'dragonfly' to conditionals. -- e.g. uname(1) in DragonFlyBSD [root@ ~]# uname DragonFly [root@ ~]# python -c "import sys; print(sys.platform)" dragonfly5
2017-08-24Use printcap() to control test executionNikolaus Rath-0/+30
That way, we run only tests that are supported by the running kernel.
2017-08-11Don't attempt to run fusermount3 under BSD.Nikolaus Rath-10/+21
2017-01-12Only use valgrind if requested explicitly + enable address sanitizerNikolaus Rath-12/+3
2017-01-12Added experimental support for building with Meson+NinjaNikolaus Rath-4/+3
2017-01-10Skip tests if not root and no setuid fusermount3.Nikolaus Rath-0/+37
2016-11-28Rename more things from fuse to fuse3Przemysław Pawełczyk-2/+2
2016-10-28Renamed fusermount / mount.fuse to fusermount3 / mount.fuse3Nikolaus Rath-2/+2
2016-10-13tests: use freshly-build fusermount (instead of system version)Nikolaus Rath-2/+21
When running tests as non-root, make fusermount setuid root.
2016-10-09Added cuse unit test.Nikolaus Rath-2/+3
2016-10-08Added safe_sleep()Nikolaus Rath-0/+14
2016-10-03Don't crash if valgrind or libtool are not installed.Nikolaus Rath-3/+7
2016-10-02Run tests under valgrind when available.Nikolaus Rath-0/+13
Fixes #50.
2016-03-29Added basic unit tests.Nikolaus Rath-0/+38
Fixes issue #33.