aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Tomohiro Kusumi <kusumi.tomohiro@gmail.com>2018-03-29 04:32:59 +0900
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2018-03-28 20:32:59 +0100
commit72ab7172b8de822215cea644b148df5eacb8aa0a (patch)
tree04051d535d459419e50b6d01959173504c95b4fb /test
parent03515bbb3092da9b3c2c6a267de90f9f0dcbdb29 (diff)
Fix build error on DragonFlyBSD (sync with other *BSD) (#240)
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
Diffstat (limited to 'test')
-rw-r--r--test/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/util.py b/test/util.py
index c15476b..b9c1b0c 100644
--- a/test/util.py
+++ b/test/util.py
@@ -46,7 +46,7 @@ def wait_for_mount(mount_process, mnt_dir,
def cleanup(mnt_dir):
# Don't bother trying Valgrind if things already went wrong
- if 'bsd' in sys.platform:
+ if 'bsd' in sys.platform or 'dragonfly' in sys.platform:
cmd = [ 'umount', '-f', mnt_dir ]
else:
cmd = [pjoin(basename, 'util', 'fusermount3'),
@@ -56,7 +56,7 @@ def cleanup(mnt_dir):
def umount(mount_process, mnt_dir):
- if 'bsd' in sys.platform:
+ if 'bsd' in sys.platform or 'dragonfly' in sys.platform:
cmdline = [ 'umount', mnt_dir ]
else:
# fusermount3 will be setuid root, so we can only trace it with
@@ -109,7 +109,7 @@ def fuse_test_marker():
skip = lambda x: pytest.mark.skip(reason=x)
- if 'bsd' in sys.platform:
+ if 'bsd' in sys.platform or 'dragonfly' in sys.platform:
return pytest.mark.uses_fuse()
with subprocess.Popen(['which', 'fusermount3'], stdout=subprocess.PIPE,