summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2016-02-10 14:20:10 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-02-10 14:20:10 -0800
commit4ecc59aa427000fcd02325e067e178c15111c48a (patch)
tree72a7ad35df0b0509c9011cc64af9a66f777f2711 /t
parentMerge branch 'wp/sha1-name-negative-match' (diff)
parenttest-lib: limit the output of the yes utility (diff)
downloadtgif-4ecc59aa427000fcd02325e067e178c15111c48a.tar.xz
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')
-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
}