]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Test] Fix corpus directory path
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 17 Oct 2025 12:58:50 +0000 (13:58 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 17 Oct 2025 12:58:50 +0000 (13:58 +0100)
Change CORPUS_DIR from data/corpus/corpus to data/corpus
Archive extracts as data/corpus/ directly, not nested

.github/workflows/integration-test.yml

index 4a55945dffd245427a7e0250267e55cb6590f463..ad8f98a26ebeb19df0bb43eaff5a7f9f0012c0c8 100644 (file)
@@ -220,12 +220,14 @@ jobs:
           export PROXY_PORT=50004
           export PASSWORD=q1
           export TEST_PROXY=true
-          export CORPUS_DIR=data/corpus/corpus
+          export CORPUS_DIR=data/corpus
 
           # Verify corpus exists
-          if [ ! -d "$CORPUS_DIR" ]; then
-            echo "ERROR: Corpus directory not found at $CORPUS_DIR"
-            ls -la data/corpus/
+          if [ ! -d "$CORPUS_DIR/spam" ] || [ ! -d "$CORPUS_DIR/ham" ]; then
+            echo "ERROR: Corpus directories not found"
+            echo "Expected: $CORPUS_DIR/spam and $CORPUS_DIR/ham"
+            ls -la data/
+            ls -la data/corpus/ || true
             exit 1
           fi