From: Ian Jackson Date: Sun, 4 Sep 2016 19:45:27 +0000 (+0100) Subject: Test suite: t-output: support expecting empty files X-Git-Tag: archive/debian/2.0~186 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=915017a37d1da31b3835bc181f464cd4af09b513;ds=sidebyside Test suite: t-output: support expecting empty files Signed-off-by: Ian Jackson --- diff --git a/tests/lib b/tests/lib index 36237a74..c403dc72 100644 --- a/tests/lib +++ b/tests/lib @@ -364,7 +364,7 @@ t-cloned-fetched-good () { } t-output () { - printf "%s\n" "$1" >$tmp/t.want + printf "%s${1:+\n}" "$1" >$tmp/t.want shift "$@" >$tmp/t.got diff $tmp/t.want $tmp/t.got