diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2021-01-30 11:07:11 +0200 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2021-01-30 11:07:11 +0200 |
commit | 3482a35a1ac0880235653e353b1f8489d59eacd3 (patch) | |
tree | 2b8e3f02d6e6cbf6405a419b5daeb67a34a77a92 | |
parent | 55bbc04b88b091c9d2b206bc4a21042c5c881b36 (diff) | |
download | bindfs-3482a35a1ac0880235653e353b1f8489d59eacd3.tar.gz |
Tests to use fusermount3 if installed
-rw-r--r-- | tests/common.rb | 9 |
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 |