summaryrefslogtreecommitdiff
path: root/t/t6500-gc.sh
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2019-11-25 21:28:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-11-27 01:57:10 (GMT)
commit44a4693bfcec1876b29cdaec3625819d80ea1280 (patch)
treecdfa2be639efb37f30f35351adf4f397ec12eee6 /t/t6500-gc.sh
parentd9f6f3b6195a0ca35642561e530798ad1469bd41 (diff)
downloadgit-44a4693bfcec1876b29cdaec3625819d80ea1280.zip
git-44a4693bfcec1876b29cdaec3625819d80ea1280.tar.gz
git-44a4693bfcec1876b29cdaec3625819d80ea1280.tar.bz2
progress: create GIT_PROGRESS_DELAY
The start_delayed_progress() method is a preferred way to show optional progress to users as it ignores steps that take less than two seconds. However, this makes testing unreliable as tests expect to be very fast. In addition, users may want to decrease or increase this time interval depending on their preferences for terminal noise. Create the GIT_PROGRESS_DELAY environment variable to control the delay set during start_delayed_progress(). Set the value in some tests to guarantee their output remains consistent. Helped-by: Jeff King <peff@peff.net> Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6500-gc.sh')
-rwxr-xr-xt/t6500-gc.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/t6500-gc.sh b/t/t6500-gc.sh
index c0f04dc..7f79eed 100755
--- a/t/t6500-gc.sh
+++ b/t/t6500-gc.sh
@@ -103,9 +103,8 @@ test_expect_success 'auto gc with too many loose objects does not attempt to cre
'
test_expect_success 'gc --no-quiet' '
- git -c gc.writeCommitGraph=true gc --no-quiet >stdout 2>stderr &&
+ GIT_PROGRESS_DELAY=0 git -c gc.writeCommitGraph=true gc --no-quiet >stdout 2>stderr &&
test_must_be_empty stdout &&
- test_line_count = 1 stderr &&
test_i18ngrep "Computing commit graph generation numbers" stderr
'