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.
pull/5444/head
Rene Cannao 2 months ago
parent 18e1f50191
commit a4daa4e111

@ -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 \

Loading…
Cancel
Save