diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-10-16 09:16:01 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-16 09:16:01 +0200 |
commit | f2e2136ad7291524a2b67a179dea493f4a562453 (patch) | |
tree | b20e888167a8b13ee47b77bee41fc2b08cf17034 /t/t1006-cat-file.sh | |
parent | Merge branch 'fe/doc-updates' (diff) | |
parent | tests: order arguments to git-rev-list properly (diff) | |
download | git-f2e2136ad7291524a2b67a179dea493f4a562453.tar.xz git-f2e2136ad7291524a2b67a179dea493f4a562453.zip |
Merge branch 'md/test-cleanup'
Various test scripts have been updated for style and also correct
handling of exit status of various commands.
* md/test-cleanup:
tests: order arguments to git-rev-list properly
t9109: don't swallow Git errors upstream of pipes
tests: don't swallow Git errors upstream of pipes
t/*: fix ordering of expected/observed arguments
tests: standardize pipe placement
Documentation: add shell guidelines
t/README: reformat Do, Don't, Keep in mind lists
Diffstat (limited to 't/t1006-cat-file.sh')
-rwxr-xr-x | t/t1006-cat-file.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t1006-cat-file.sh b/t/t1006-cat-file.sh index a7c95bb785..43c4be1e5e 100755 --- a/t/t1006-cat-file.sh +++ b/t/t1006-cat-file.sh @@ -220,8 +220,8 @@ test_expect_success "--batch-check for a non-existent hash" ' test "0000000000000000000000000000000000000042 missing 0000000000000000000000000000000000000084 missing" = \ "$( ( echo 0000000000000000000000000000000000000042; - echo_without_newline 0000000000000000000000000000000000000084; ) \ - | git cat-file --batch-check)" + echo_without_newline 0000000000000000000000000000000000000084; ) | + git cat-file --batch-check)" ' test_expect_success "--batch for an existent and a non-existent hash" ' @@ -229,8 +229,8 @@ test_expect_success "--batch for an existent and a non-existent hash" ' $tag_content 0000000000000000000000000000000000000000 missing" = \ "$( ( echo $tag_sha1; - echo_without_newline 0000000000000000000000000000000000000000; ) \ - | git cat-file --batch)" + echo_without_newline 0000000000000000000000000000000000000000; ) | + git cat-file --batch)" ' test_expect_success "--batch-check for an empty line" ' |