Skip to content

Commit 3a95b0c

Browse files
committed
Return dmg path and filename from mount_sparsebundle
1 parent 64a1462 commit 3a95b0c

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/10_basic.tst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source "$(dirname "$0")/testhelpers.sh"
44

55
function setup() {
6-
mount_sparsebundle
6+
read -r mount_dir dmg_file < <(mount_sparsebundle)
77
}
88

99
function test_dmg_has_expected_size() {

tests/20_allow_other.tst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source "$(dirname "$0")/testhelpers.sh"
44

55
function setup() {
6-
mount_sparsebundle -o allow_other
6+
read -r mount_dir dmg_file < <(mount_sparsebundle -o allow_other)
77
}
88

99
function test_dmg_has_correct_permissions() {

tests/testhelpers.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,6 @@ function mount_sparsebundle() {
99
kill -0 $pid >/dev/null 2>&1
1010
test -f $dmg_file && break || sleep 0.1
1111
done
12+
13+
echo $mount_dir "$mount_dir/sparsebundle.dmg"
1214
}

0 commit comments

Comments
 (0)