From 0a7625607526d3ce0dbea175fc98876e38c9cd74 Mon Sep 17 00:00:00 2001 From: John McLear Date: Tue, 31 Mar 2026 22:01:29 +0100 Subject: [PATCH] Enable globstar in plugin backend-tests template (#7414) * fix: re-apply retries: 0 Co-Authored-By: Claude Opus 4.6 (1M context) * Enable globstar in backend-tests template for recursive test discovery Without shopt -s globstar, bash ** doesn't recurse into subdirectories, causing mocha to miss test files in paths like specs/api/exportHTML.ts. Co-Authored-By: Claude Opus 4.6 (1M context) --------- Co-authored-by: Claude Opus 4.6 (1M context) --- bin/plugins/lib/backend-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/plugins/lib/backend-tests.yml b/bin/plugins/lib/backend-tests.yml index 5cb360f46..ea6dacd0e 100644 --- a/bin/plugins/lib/backend-tests.yml +++ b/bin/plugins/lib/backend-tests.yml @@ -62,6 +62,7 @@ jobs: name: Run the backend tests working-directory: ./etherpad-lite/src run: | + shopt -s globstar res=$(find ./plugin_packages -path "*/static/tests/backend/specs/*" 2>/dev/null | wc -l) if [ $res -eq 0 ]; then echo "No backend tests found"