Skip to content

Commit 09c7a5f

Browse files
committed
added additional testing that hdiutil is not called on failure
1 parent 4819f86 commit 09c7a5f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/archive_vms.zunit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@
107107
run archive_vms.zsh $TEMP/decoy_dir $TEMP/out.dmg
108108

109109
assert $state equals 4
110+
if [ -f $TEMP/hdiutil.calls ]; then
111+
fail 'hdiutil was called'
112+
else
113+
pass
114+
fi
110115
}
111116

112117
@test 'hdiutil create is executed' {

0 commit comments

Comments
 (0)