diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2011-07-21 23:04:23 +0300 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2011-07-22 10:32:22 +0300 |
commit | 1479a6bb7184009b440a2e68b792941de1bd1f76 (patch) | |
tree | d27c679d5b64c7479a34889fab731ff53a5ca788 /tests/common.rb | |
parent | 4a5d9fdb831c82d27682560d1b29b3c8b50a4cbc (diff) | |
download | bindfs-1479a6bb7184009b440a2e68b792941de1bd1f76.tar.gz |
Tests: wait 0.5s for mount to be ready on FreeBSD.
Diffstat (limited to 'tests/common.rb')
-rwxr-xr-x | tests/common.rb | 8 |
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 |