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
@@ -27,7 +27,7 @@ cleanup() {
cleanup_app_passwords_for lit-smoke-sub2
wp user delete lit-smoke-sub2 --yes >/dev/null 2>&1 || true
}
trap cleanup EXIT
trap 'rc=$?; cleanup; guard_exit "$rc" || exit $?' EXIT
connect "$ADMIN_LOGIN"
@@ -149,4 +149,4 @@ echo (int) $wpdb->get_var($wpdb->prepare(
[ "$ROWS" -ge 2 ] || fail "media changes not logged (found $ROWS)"
pass "media changes logged"
echo "ALL CHECKS PASSED"
finish