Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-02-11 01:20:10 +0300
committerJunio C Hamano <gitster@pobox.com>2016-02-11 01:20:10 +0300
commit4ecc59aa427000fcd02325e067e178c15111c48a (patch)
tree72a7ad35df0b0509c9011cc64af9a66f777f2711 /t/test-lib.sh
parentfb795323ce3ce5a358f8e55641777b9cdbeab846 (diff)
parent6129c930b22dc21e860dd1cddf73c6e45442e620 (diff)
Merge branch 'js/test-lib-windows-emulated-yes'
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/test-lib.sh')
-rw-r--r--t/test-lib.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index bd4b02e9db..51e4a88c33 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
}