aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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