From c32951393abed4b44b777b2c6acd55050ee415f1 Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Sat, 11 Jul 2026 00:38:07 +0200 Subject: [PATCH] Skip empty cloned backend test suites --- scripts/check-release-integration.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/scripts/check-release-integration.sh b/scripts/check-release-integration.sh index 5d555e3..e64a76b 100644 --- a/scripts/check-release-integration.sh +++ b/scripts/check-release-integration.sh @@ -42,6 +42,15 @@ run_step() { echo "==> $*" } +run_discovered_tests() { + local suite_dir="$1" + if ! find "$suite_dir" -type f -name 'test*.py' -print -quit | grep -q .; then + echo "No unittest test files found under $suite_dir; skipping." + return 0 + fi + "$PYTHON" -m unittest discover -s "$suite_dir" +} + run_step "Validate release refs and installed package metadata" "$PYTHON" - <<'PY' from __future__ import annotations @@ -208,9 +217,9 @@ run_step "Run core backend release tests" "$PYTHON" scripts/check_dependency_boundaries.py run_step "Run cloned module backend tests" -"$PYTHON" -m unittest discover -s "$WORK_ROOT/govoplan-mail/tests" -"$PYTHON" -m unittest discover -s "$WORK_ROOT/govoplan-calendar/tests" -"$PYTHON" -m unittest discover -s "$WORK_ROOT/govoplan-campaign/tests" +run_discovered_tests "$WORK_ROOT/govoplan-mail/tests" +run_discovered_tests "$WORK_ROOT/govoplan-calendar/tests" +run_discovered_tests "$WORK_ROOT/govoplan-campaign/tests" run_step "Run core WebUI release tests and build" cd "$ROOT/webui"