From: Olivier Houchard Date: Tue, 17 Nov 2026 16:37:14 +0000 (+0100) Subject: REGTESTS: decompression: don't use yes(1) in http_large_cl X-Git-Tag: v3.5-dev13~27 X-Git-Url: https://git.kaiwu.me/web/%22data:,/doc/static/%7B@url%7D?a=commitdiff_plain;h=83b5d711a4766112206802df1bcc3f9f958b340a;p=haproxy.git REGTESTS: decompression: don't use yes(1) in http_large_cl The body of http_large_cl.vtc was produced using "yes | head -c". But vtest ignores SIGPIPE, which is inherited by the shell commands, and BusyBox's yes never stops when its output is closed in this case. The test then hangs until it is killed by vtest, as seen on the Alpine CI. GNU yes is not affected because it exits on the write error. Let's use awk instead to produce the same 24000 bytes. This test was added by commit 68a8abcbe ("REGTESTS: decompression: test a large decompressed Content-Length response"), no backport is needed. --- diff --git a/reg-tests/decompression/http_large_cl.vtc b/reg-tests/decompression/http_large_cl.vtc index 44814f475..55d250e05 100644 --- a/reg-tests/decompression/http_large_cl.vtc +++ b/reg-tests/decompression/http_large_cl.vtc @@ -9,7 +9,7 @@ feature ignore_unknown_macro # message, but it decompresses into more than a buffer. The end of message # must only be reported once all the decompressed data were emitted. shell { - yes "decompressed by haproxy" | head -c 24000 | gzip -c > ${tmpdir}/big.gz + awk 'BEGIN { for (i = 0; i < 1000; i++) print "decompressed by haproxy" }' | gzip -c > ${tmpdir}/big.gz } server s1 {