From 1479a6bb7184009b440a2e68b792941de1bd1f76 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Thu, 21 Jul 2011 23:04:23 +0300 Subject: Tests: wait 0.5s for mount to be ready on FreeBSD. --- tests/common.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/common.rb') diff --git a/tests/common.rb b/tests/common.rb index 593d1e0..65c26ca 100755 --- a/tests/common.rb +++ b/tests/common.rb @@ -77,6 +77,14 @@ def testenv(bindfs_args, &block) # Wait for bindfs to daemonize itself Process.wait bindfs_pid + # Wait for the mount to appear (fuse4bsd is sometimes slow) + if `uname -a`.downcase.include? 'freebsd' + puts "Waiting for fuse4bsd" + # The mount is sometimes not ready even after it appears in `mount`. + # If there's a better solution, I'd like to hear it. + sleep 0.5 + end + # TODO: check that mounting was successful testcase_ok = true -- cgit v1.2.3