aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2011-07-21 23:04:23 +0300
committerMartin Pärtel <martin.partel@gmail.com>2011-07-22 10:32:22 +0300
commit1479a6bb7184009b440a2e68b792941de1bd1f76 (patch)
treed27c679d5b64c7479a34889fab731ff53a5ca788 /tests
parent4a5d9fdb831c82d27682560d1b29b3c8b50a4cbc (diff)
downloadbindfs-1479a6bb7184009b440a2e68b792941de1bd1f76.tar.gz
Tests: wait 0.5s for mount to be ready on FreeBSD.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/common.rb8
1 files changed, 8 insertions, 0 deletions
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