From a9603e5519f895d7cc2e422be6b71bc5ffbba5bc Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 20 Oct 2025 14:06:18 +0100 Subject: [PATCH] [Test] Fix proxy test file access permission issues Use xargs to read file list instead of passing directory path directly. This avoids permission denied errors when rspamc runs inside Docker container and tries to read files from mounted volumes with different user permissions. The controller test already uses this approach successfully. --- test/integration/scripts/integration-test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/scripts/integration-test.sh b/test/integration/scripts/integration-test.sh index bd42d5097b..083136f9fd 100755 --- a/test/integration/scripts/integration-test.sh +++ b/test/integration/scripts/integration-test.sh @@ -260,9 +260,9 @@ if [ "$TEST_PROXY" = "true" ]; then echo "" echo "Testing via proxy worker ($PROXY_PORT)..." - # Use corpus directory for proxy test too - if ASAN_OPTIONS=detect_leaks=0 rspamc -h "$RSPAMD_HOST:$PROXY_PORT" -n "$PARALLEL" -j \ - "$CORPUS_DIR" > "$DATA_DIR/proxy_results.json" 2> "$DATA_DIR/proxy_errors.log"; then + # Use same file list approach as controller test to avoid permission issues + if xargs -a "$DATA_DIR/shuffled_files.txt" rspamc -h "$RSPAMD_HOST:$PROXY_PORT" \ + -n "$PARALLEL" -j > "$DATA_DIR/proxy_results.json" 2> "$DATA_DIR/proxy_errors.log"; then echo "✓ Proxy test complete" echo "Results saved to $DATA_DIR/proxy_results.json" else -- 2.47.3