From 915017a37d1da31b3835bc181f464cd4af09b513 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 4 Sep 2016 20:45:27 +0100 Subject: [PATCH] Test suite: t-output: support expecting empty files Signed-off-by: Ian Jackson --- tests/lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2