File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,11 +6,6 @@ function setup() {
66 mount_sparsebundle
77}
88
9- function test_dmg_exists_after_mounting () {
10- ls -al $mount_dir
11- test -f $dmg_file
12- }
13-
149function test_dmg_has_expected_size () {
1510 size=$(ls -dn $dmg_file | awk ' {print $5; exit}' )
1611 test $size -eq 1099511627776
Original file line number Diff line number Diff line change 22function mount_sparsebundle() {
33 test ! -z " $TEST_BUNDLE "
44 mount_dir=$( mktemp -d)
5+ dmg_file=" $mount_dir /sparsebundle.dmg"
56 sparsebundlefs -s -f -D $* $TEST_BUNDLE $mount_dir &
67 pid=$!
78 for i in {0..50}; do
89 kill -0 $pid > /dev/null 2>&1
9- # FIXME: Find actual mount callback in fuse?
10- grep -q " bundle has" $test_output_file && break || sleep 0.1
10+ test -f $dmg_file && break || sleep 0.1
1111 done
12- dmg_file=$mount_dir /sparsebundle.dmg
1312}
You can’t perform that action at this time.
0 commit comments