Skip to content

Commit 26a141b

Browse files
committed
Only remove test bundle dir if unmount was successful
1 parent a5ad123 commit 26a141b

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

tests/10_basic.tst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ function test_dmg_has_correct_permissions() {
2222
}
2323

2424
function teardown() {
25-
umount $mount_dir
26-
rm -Rf $mount_dir
25+
umount $mount_dir && rm -Rf $mount_dir
2726
}

tests/20_allow_other.tst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ function test_dmg_has_correct_permissions() {
1212
}
1313

1414
function teardown() {
15-
umount $mount_dir
16-
rm -Rf $mount_dir
15+
umount $mount_dir && rm -Rf $mount_dir
1716
}

0 commit comments

Comments
 (0)