@matheusbsbs / matheus-bagliano / commits / 09279086e8
Fork 0

t7700: drop redirections to /dev/null

Since output is silenced when running without `-v` and debugging output is useful with `-v`, remove redirections to /dev/null as it is not useful. In one case where the output of stdout is consumed, redirect the output of test_commit to stderr. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Denton Liu committed Nov 27, 2019 at 11:53 UTC 09279086e8c92c77cc75f73dcac35062e6e68fd3
1 file changed +3 -3
t/t7700-repack.sh
+3 -3
@@ -5,7 +5,7 @@ test_description='git repack works correctly'
5 . ./test-lib.sh
6
7 commit_and_pack() {
8 - test_commit "$@" >/dev/null &&
8 + test_commit "$@" 1>&2 &&
9 SHA1=$(git pack-objects --all --unpacked --incremental .git/objects/pack/pack </dev/null) &&
10 echo pack-${SHA1}.pack
11 }
@@ -19,7 +19,7 @@ test_expect_success 'objects in packs marked .keep are not repacked' '
19 # Create two packs
20 # The first pack will contain all of the objects except one
21 git rev-list --objects --all | grep -v file2 |
22 - git pack-objects pack > /dev/null &&
22 + git pack-objects pack &&
23 # The second pack will contain the excluded object
24 packsha1=$(git rev-list --objects --all | grep file2 |
25 git pack-objects pack) &&
@@ -235,7 +235,7 @@ test_expect_success 'incremental repack does not complain' '
235
236 test_expect_success 'bitmaps can be disabled on bare repos' '
237 git -c repack.writeBitmaps=false -C bare.git repack -ad &&
238 - bitmap=$(ls bare.git/objects/pack/*.bitmap 2>/dev/null || :) &&
238 + bitmap=$(ls bare.git/objects/pack/*.bitmap || :) &&
239 test -z "$bitmap"
240 '
241