summaryrefslogtreecommitdiffstats
path: root/t/test-lib-functions.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-01-05 07:07:18 +0100
committerJunio C Hamano <gitster@pobox.com>2023-01-05 07:07:19 +0100
commit6f212b7c3f01fbdcef07e8076e877c5a8e2d33f2 (patch)
tree7b26af2c658fbab65ed076a48ff3e026513de67b /t/test-lib-functions.sh
parentMerge branch 'dh/mingw-ownership-check-typofix' (diff)
parenttests: make 'test_oid' print trailing newline (diff)
downloadgit-6f212b7c3f01fbdcef07e8076e877c5a8e2d33f2.tar.xz
git-6f212b7c3f01fbdcef07e8076e877c5a8e2d33f2.zip
Merge branch 'sg/test-oid-wo-incomplete-line'
Test helper updates. * sg/test-oid-wo-incomplete-line: tests: make 'test_oid' print trailing newline
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r--t/test-lib-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh
index 0fd7d4a200..f036c4d300 100644
--- a/t/test-lib-functions.sh
+++ b/t/test-lib-functions.sh
@@ -1682,7 +1682,7 @@ test_oid () {
then
BUG "undefined key '$1'"
fi &&
- eval "printf '%s' \"\${$var}\""
+ eval "printf '%s\n' \"\${$var}\""
}
# Insert a slash into an object ID so it can be used to reference a location