t5516: fail to run in verbose mode

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>

Jiang Xin committed Nov 21, 2022 at 21:40 UTC 288fcb1c942d582b915a4c824c6b87a94ae875a7
1 file changed +3 -3
t/t5516-fetch-push.sh
+3 -3
@@ -1870,19 +1870,19 @@ test_expect_success 'push with config push.useBitmaps' '
1870 git checkout main &&
1871 test_unconfig push.useBitmaps &&
1872 GIT_TRACE2_EVENT="$PWD/default" \
1873 - git push testrepo main:test &&
1873 + git push --quiet testrepo main:test &&
1874 test_subcommand git pack-objects --all-progress-implied --revs --stdout \
1875 --thin --delta-base-offset -q <default &&
1876
1877 test_config push.useBitmaps true &&
1878 GIT_TRACE2_EVENT="$PWD/true" \
1879 - git push testrepo main:test2 &&
1879 + git push --quiet testrepo main:test2 &&
1880 test_subcommand git pack-objects --all-progress-implied --revs --stdout \
1881 --thin --delta-base-offset -q <true &&
1882
1883 test_config push.useBitmaps false &&
1884 GIT_TRACE2_EVENT="$PWD/false" \
1885 - git push testrepo main:test3 &&
1885 + git push --quiet testrepo main:test3 &&
1886 test_subcommand git pack-objects --all-progress-implied --revs --stdout \
1887 --thin --delta-base-offset -q --no-use-bitmap-index <false
1888 '