]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5516: fail to run in verbose mode
authorJiang Xin <zhiyou.jx@alibaba-inc.com>
Mon, 21 Nov 2022 13:40:40 +0000 (21:40 +0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Nov 2022 00:16:30 +0000 (09:16 +0900)
The test case "push with config push.useBitmap" of t5516 was introduced
in commit 82f67ee13f (send-pack.c: add config push.useBitmaps,
2022-06-17). It won't work in verbose mode, e.g.:

    $ sh t5516-fetch-push.sh --run='1,115' -v

This is because "git-push" will run in a tty in this case, and the
subcommand "git pack-objects" will contain an argument "--progress"
instead of "-q". Adding a specific option "--quiet" to "git push" will
get a stable result for t5516.

Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5516-fetch-push.sh

index b3734dd2fe95ec5b1f8e1d7cd8ad6f72859c9ad5..f43203118dbb3d991b9953a99c0767296d846d45 100755 (executable)
@@ -1870,19 +1870,19 @@ test_expect_success 'push with config push.useBitmaps' '
        git checkout main &&
        test_unconfig push.useBitmaps &&
        GIT_TRACE2_EVENT="$PWD/default" \
-       git push testrepo main:test &&
+       git push --quiet testrepo main:test &&
        test_subcommand git pack-objects --all-progress-implied --revs --stdout \
                --thin --delta-base-offset -q <default &&
 
        test_config push.useBitmaps true &&
        GIT_TRACE2_EVENT="$PWD/true" \
-       git push testrepo main:test2 &&
+       git push --quiet testrepo main:test2 &&
        test_subcommand git pack-objects --all-progress-implied --revs --stdout \
                --thin --delta-base-offset -q <true &&
 
        test_config push.useBitmaps false &&
        GIT_TRACE2_EVENT="$PWD/false" \
-       git push testrepo main:test3 &&
+       git push --quiet testrepo main:test3 &&
        test_subcommand git pack-objects --all-progress-implied --revs --stdout \
                --thin --delta-base-offset -q --no-use-bitmap-index <false
 '