summaryrefslogtreecommitdiff
path: root/tests/util.py
diff options
context:
space:
mode:
authorJustin Husted <sigstop@gmail.com>2019-11-11 12:00:08 -0800
committerJustin Husted <sigstop@gmail.com>2019-11-11 12:18:22 -0800
commita00998c4cdf834ebce00bedabd2804fe5376a63c (patch)
treef098e102fd22d5e6aa69ef29ab53bb92aa4ac43d /tests/util.py
parent1f7098c22213bbe66896f390a529223468a3986e (diff)
Make fuse3 support optional and document.
The experimental fuse3 support is not complete yet, and fuse3 is new and still difficult to install on some platforms. Make it optional at compile time, and default to off. Signed-off-by: Justin Husted <sigstop@gmail.com>
Diffstat (limited to 'tests/util.py')
-rw-r--r--tests/util.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/util.py b/tests/util.py
index 18d6002..b6e05e3 100644
--- a/tests/util.py
+++ b/tests/util.py
@@ -4,6 +4,7 @@ import os
import pytest
import re
import subprocess
+import sys
import tempfile
import threading
import time
@@ -208,3 +209,7 @@ class BFuse(threading.Thread):
assert self.returncode == 0
assert len(self.stdout) > 0
assert len(self.stderr) == 0
+
+def have_fuse():
+ res = run(BCH_PATH, 'fusemount', valgrind=False)
+ return "Please supply a mountpoint." in res.stdout