From a4daa4e111c7ced27c23750a152b47ddb89ed381 Mon Sep 17 00:00:00 2001 From: Rene Cannao Date: Sun, 8 Mar 2026 22:08:37 +0000 Subject: [PATCH] Fix find command noise by pruning restricted directories - Update run-tests-isolated.bash to exclude ci_infra_logs and .git from binary discovery. - Prevents 'Permission denied' errors when find attempts to traverse database data directories. --- test/infra/control/run-tests-isolated.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/infra/control/run-tests-isolated.bash b/test/infra/control/run-tests-isolated.bash index 8a66fef6b..c4c7fd99f 100755 --- a/test/infra/control/run-tests-isolated.bash +++ b/test/infra/control/run-tests-isolated.bash @@ -85,8 +85,8 @@ mkdir -p "${TESTS_LOGS_PATH_HOST}" chmod 777 "${TESTS_LOGS_PATH_HOST}" # Find binaries -MYSQL_BINLOG_BIN=$(find "${WORKSPACE}" -name "mysqlbinlog" -type f -executable | head -n 1) -BINLOG_READER_BIN=$(find "${WORKSPACE}" -name "test_binlog_reader-t" -type f -executable | head -n 1) +MYSQL_BINLOG_BIN=$(find "${WORKSPACE}" -path "${WORKSPACE}/ci_infra_logs" -prune -o -path "${WORKSPACE}/.git" -prune -o -name "mysqlbinlog" -type f -executable -print | head -n 1) +BINLOG_READER_BIN=$(find "${WORKSPACE}" -path "${WORKSPACE}/ci_infra_logs" -prune -o -path "${WORKSPACE}/.git" -prune -o -name "test_binlog_reader-t" -type f -executable -print | head -n 1) # Execution: run the container docker run \