From 3482a35a1ac0880235653e353b1f8489d59eacd3 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Sat, 30 Jan 2021 11:07:11 +0200 Subject: Tests to use fusermount3 if installed --- tests/common.rb | 9 ++++++--- 1 file 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 -- cgit v1.2.3