mdbx-testing: проверка поддержки tee -p.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-11-06 11:19:32 +03:00
parent 157ede4e42
commit 2669f285f9

View File

@ -472,7 +472,10 @@ function probe {
do 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" 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 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 else
exec {LFD}> >(logger) exec {LFD}> >(logger)
fi fi