Skip to content

Commit d426e43

Browse files
committed
Ensure sparsebundlefs process is alive while we're waiting for it
1 parent 7b7a15e commit d426e43

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

tests/10_basic.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ function setup() {
33
test ! -z "$TEST_BUNDLE"
44
mount_dir=$(mktemp -d)
55
sparsebundlefs -s -f -D $TEST_BUNDLE $mount_dir &
6+
pid=$!
67
for i in {0..50}; do
8+
kill -0 $pid >/dev/null 2>&1
79
# FIXME: Find actual mount callback in fuse?
810
grep -q "bundle has" $test_output_file && break || sleep 0.1
911
done

tests/20_allow_other.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ function setup() {
33
test ! -z "$TEST_BUNDLE"
44
mount_dir=$(mktemp -d)
55
sparsebundlefs -s -f -D -o allow_other $TEST_BUNDLE $mount_dir &
6+
pid=$!
67
for i in {0..50}; do
8+
kill -0 $pid >/dev/null 2>&1
79
# FIXME: Find actual mount callback in fuse?
810
grep -q "bundle has" $test_output_file && break || sleep 0.1
911
done

0 commit comments

Comments
 (0)