summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-09-04 20:45:27 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-09-11 18:53:45 +0100
commit915017a37d1da31b3835bc181f464cd4af09b513 (patch)
treee64028e60f73838b995335719c2c921d48a3062e /tests/lib
parented4a8beb1ea1d4c1036d20b64900d6a7e9cb4ece (diff)
Test suite: t-output: support expecting empty files
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib b/tests/lib
index 36237a7..c403dc7 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