chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Test suite: t-output: support expecting empty files
[dgit.git]
/
tests
/
lib
diff --git
a/tests/lib
b/tests/lib
index 36237a7485ed008f136ff4afd1c03dd2f3f3a6e5..c403dc72b0e29acf5f60f6584a283789c71de8cb 100644
(file)
--- 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