aboutsummaryrefslogtreecommitdiffstats
path: root/tests/common.rb
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2021-01-30 11:07:11 +0200
committerMartin Pärtel <martin.partel@gmail.com>2021-01-30 11:07:11 +0200
commit3482a35a1ac0880235653e353b1f8489d59eacd3 (patch)
tree2b8e3f02d6e6cbf6405a419b5daeb67a34a77a92 /tests/common.rb
parent55bbc04b88b091c9d2b206bc4a21042c5c881b36 (diff)
downloadbindfs-3482a35a1ac0880235653e353b1f8489d59eacd3.tar.gz
Tests to use fusermount3 if installed
Diffstat (limited to 'tests/common.rb')
-rw-r--r--tests/common.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/common.rb b/tests/common.rb
index 24fd036..59010f6 100644
--- a/tests/common.rb
+++ b/tests/common.rb
@@ -213,9 +213,12 @@ def nonroot_testenv(bindfs_args, options = {}, &block)
end
def umount_cmd
- if `which fusermount`.strip.empty?
- then 'umount'
- else 'fusermount -uz'
+ if !`which fusermount3`.strip.empty?
+ 'fusermount3 -uz'
+ elsif !`which fusermount`.strip.empty?
+ 'fusermount -uz'
+ else
+ 'umount'
end
end