test: smoke scripts fail when they stop before their last check

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-09-26 18:44:10 +02:00
co-authored by Claude Opus 5.5
parent 3a5f658f35
commit 314b3d0756
6 changed files with 24 additions and 10 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ cleanup() {
[ "$PODS_WAS_ACTIVE" = "no" ] && wp plugin deactivate pods >/dev/null 2>&1 || true
cleanup_app_passwords_for "$ADMIN_LOGIN"
}
trap cleanup EXIT
trap 'rc=$?; cleanup; guard_exit "$rc" || exit $?' EXIT
wp plugin activate pods >/dev/null
wp eval-file "$PLUGIN/tests/Integration/pods-fixture.php" create >/dev/null
@@ -223,4 +223,4 @@ ROWS=$(wp db query "SELECT COUNT(*) FROM ${PREFIX}lit_mcp_log WHERE ability = 'l
[ "$ROWS" -ge 2 ] || fail "change log rows missing (found $ROWS)"
pass "change log records ability and client"
echo "ALL CHECKS PASSED"
finish