From: Vsevolod Stakhov Date: Mon, 20 Oct 2025 13:06:18 +0000 (+0100) Subject: [Test] Fix proxy test file access permission issues X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a9603e5519f895d7cc2e422be6b71bc5ffbba5bc;p=thirdparty%2Frspamd.git [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. --- 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