Skip to content

Commit 970ad5e

Browse files
committed
Move allow_other tests into main test suite
1 parent 3a95b0c commit 970ad5e

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

tests/10_basic.tst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ function test_dmg_has_correct_permissions() {
2121
test $permissions = "-r--------"
2222
}
2323

24+
function test_dmg_permissions_reflect_allow_other() {
25+
local mount_dir
26+
local dmg_file
27+
read -r mount_dir dmg_file < <(mount_sparsebundle -o allow_other)
28+
permissions=$(ls -l $dmg_file | awk '{print $1; exit}')
29+
test $permissions = "-r-----r--"
30+
umount $mount_dir && rm -Rf $mount_dir
31+
}
32+
2433
function teardown() {
2534
umount $mount_dir && rm -Rf $mount_dir
2635
}

tests/20_allow_other.tst

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)