]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ds/t1092-fix-flake-from-progress'
authorJunio C Hamano <gitster@pobox.com>
Thu, 27 May 2021 03:36:57 +0000 (12:36 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 May 2021 03:36:57 +0000 (12:36 +0900)
Workaround flaky tests introduced recently.

* ds/t1092-fix-flake-from-progress:
  t1092: revert the "-1" hack for emulating "no progress meter"
  t1092: use GIT_PROGRESS_DELAY for consistent results

t/t1092-sparse-checkout-compatibility.sh

index 12e6c453024fdfcfb6bab555b99a078c4d147252..e9a815ca7aaaa84099b721af7db520c9f1de594b 100755 (executable)
@@ -106,18 +106,18 @@ init_repos () {
 run_on_sparse () {
        (
                cd sparse-checkout &&
-               "$@" >../sparse-checkout-out 2>../sparse-checkout-err
+               GIT_PROGRESS_DELAY=100000 "$@" >../sparse-checkout-out 2>../sparse-checkout-err
        ) &&
        (
                cd sparse-index &&
-               "$@" >../sparse-index-out 2>../sparse-index-err
+               GIT_PROGRESS_DELAY=100000 "$@" >../sparse-index-out 2>../sparse-index-err
        )
 }
 
 run_on_all () {
        (
                cd full-checkout &&
-               "$@" >../full-checkout-out 2>../full-checkout-err
+               GIT_PROGRESS_DELAY=100000 "$@" >../full-checkout-out 2>../full-checkout-err
        ) &&
        run_on_sparse "$@"
 }