diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-02-17 18:03:41 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-02-17 18:03:41 (GMT) |
commit | 7516977b4adc38937d95d8c7da8944153784bf9a (patch) | |
tree | 2903fd4f663bb9255f10bf696eba0c5eb41407ad /t | |
parent | 0eefe108ec2a946e40072caf58c52e3b7f573e52 (diff) | |
parent | 6129c930b22dc21e860dd1cddf73c6e45442e620 (diff) | |
download | git-7516977b4adc38937d95d8c7da8944153784bf9a.zip git-7516977b4adc38937d95d8c7da8944153784bf9a.tar.gz git-7516977b4adc38937d95d8c7da8944153784bf9a.tar.bz2 |
Merge branch 'js/test-lib-windows-emulated-yes' into maint
The emulated "yes" command used in our test scripts has been
tweaked not to spend too much time generating unnecessary output
that is not used, to help those who test on Windows where it would
not stop until it fills the pipe buffer due to lack of SIGPIPE.
* js/test-lib-windows-emulated-yes:
test-lib: limit the output of the yes utility
Diffstat (limited to 't')
-rw-r--r-- | t/test-lib.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh index bd4b02e..51e4a88 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -907,9 +907,11 @@ yes () { y="$*" fi - while echo "$y" + i=0 + while test $i -lt 99 do - : + echo "$y" + i=$(($i+1)) done } |