From 2669f285f9b917d3af6992bc0129b631ad342e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Wed, 6 Nov 2024 11:19:32 +0300 Subject: [PATCH] =?UTF-8?q?mdbx-testing:=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=BA=D0=B0=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6?= =?UTF-8?q?=D0=BA=D0=B8=20`tee=20-p`.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/long_stochastic.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/long_stochastic.sh b/test/long_stochastic.sh index d35b32fc..876f784e 100755 --- a/test/long_stochastic.sh +++ b/test/long_stochastic.sh @@ -472,7 +472,10 @@ function probe { do echo "Run ./mdbx_test ${speculum} --random-writemap=no --ignore-dbfull --repeat=11 --pathname=${TESTDB_DIR}/long.db --cleanup-after=no --geometry-jitter=${GEOMETRY_JITTER} $@ $case" if [[ ${REPORT_DEPTH} = "yes" && ($case = "basic" || $case = "--hill") ]]; then - exec {LFD}> >(tee -p -i >(logger) | grep -e reach -e achieve) + if [ -z "${TEE4PIPE:-}" ]; then + TEE4PIPE=$(tee --help | grep -q ' -p' && echo "tee -i -p" || echo "tee -i") + fi + exec {LFD}> >(${TEE4PIPE} >(logger) | grep -e reach -e achieve) else exec {LFD}> >(logger) fi