diff --git a/tests/10_basic.sh b/tests/10_basic.sh index 06aeb9c..08a5677 100644 --- a/tests/10_basic.sh +++ b/tests/10_basic.sh @@ -3,7 +3,9 @@ function setup() { test ! -z "$TEST_BUNDLE" mount_dir=$(mktemp -d) sparsebundlefs -s -f -D $TEST_BUNDLE $mount_dir & + pid=$! for i in {0..50}; do + kill -0 $pid >/dev/null 2>&1 # FIXME: Find actual mount callback in fuse? grep -q "bundle has" $test_output_file && break || sleep 0.1 done diff --git a/tests/20_allow_other.sh b/tests/20_allow_other.sh index f8a8293..451f37d 100644 --- a/tests/20_allow_other.sh +++ b/tests/20_allow_other.sh @@ -3,7 +3,9 @@ function setup() { test ! -z "$TEST_BUNDLE" mount_dir=$(mktemp -d) sparsebundlefs -s -f -D -o allow_other $TEST_BUNDLE $mount_dir & + pid=$! for i in {0..50}; do + kill -0 $pid >/dev/null 2>&1 # FIXME: Find actual mount callback in fuse? grep -q "bundle has" $test_output_file && break || sleep 0.1 done