diff --git a/tests/quiet_inplace.sh b/tests/quiet_inplace.sh index 925f94b..1860d30 100755 --- a/tests/quiet_inplace.sh +++ b/tests/quiet_inplace.sh @@ -7,16 +7,18 @@ fail() { cd umount "$MNT" rmdir "$MNT" + rm "$JSON" "$LOG" fi exit 1 } MNT=$(mktemp -d) JSON=$(mktemp) +LOG=$(mktemp) cp ../json/object.json "$JSON" -ffs -qi -m "$MNT" "$JSON" & +ffs -qi -m "$MNT" "$JSON" >"$LOG" 2>&1 & PID=$! sleep 2 echo hi >"$MNT"/greeting @@ -26,6 +28,7 @@ sleep 1 kill -0 $PID >/dev/null 2>&1 && fail process1 diff ../json/object.json "$JSON" >/dev/null && fail same +[ "$(cat $LOG )" = "" ] || fail quiet ffs --readonly -m "$MNT" "$JSON" & PID=$!