diff options
author | Matthew DeVore <matvore@google.com> | 2018-10-12 22:01:41 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-15 05:43:17 +0200 |
commit | d9e6d0942bb9f9fe9e4cca9670181e5b59074bcb (patch) | |
tree | cabb90e34c49bc6207b10a510fd87857c716c736 /t/t5317-pack-objects-filter-objects.sh | |
parent | list-objects-filter: implement filter tree:0 (diff) | |
download | git-d9e6d0942bb9f9fe9e4cca9670181e5b59074bcb.tar.xz git-d9e6d0942bb9f9fe9e4cca9670181e5b59074bcb.zip |
filter-trees: code clean-up of tests
A few trivial updates to test to match the current best practices.
- avoid "grep -q" that strips potentially useful output from tests
running under "-v".
- use test_write_lines to prepare multi-line expected output file.
- reserve use of test_must_fail to "git" commands.
Signed-off-by: Matthew DeVore <matvore@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5317-pack-objects-filter-objects.sh')
-rwxr-xr-x | t/t5317-pack-objects-filter-objects.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5317-pack-objects-filter-objects.sh b/t/t5317-pack-objects-filter-objects.sh index 510d3537f6..d9dccf4d4d 100755 --- a/t/t5317-pack-objects-filter-objects.sh +++ b/t/t5317-pack-objects-filter-objects.sh @@ -69,7 +69,7 @@ test_expect_success 'get an error for missing tree object' ' test_must_fail git -C r5 pack-objects --rev --stdout 2>bad_tree <<-EOF && HEAD EOF - grep -q "bad tree object" bad_tree + grep "bad tree object" bad_tree ' test_expect_success 'setup for tests of tree:0' ' |