Skip to content

Commit 4ecc59a

Browse files
committed
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
2 parents fb79532 + 6129c93 commit 4ecc59a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/test-lib.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -907,9 +907,11 @@ yes () {
907907
y="$*"
908908
fi
909909

910-
while echo "$y"
910+
i=0
911+
while test $i -lt 99
911912
do
912-
:
913+
echo "$y"
914+
i=$(($i+1))
913915
done
914916
}
915917

0 commit comments

Comments
 (0)