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
@@ -18,7 +18,7 @@ cleanup() {
done
cleanup_app_passwords_for "$ADMIN_LOGIN"
}
trap cleanup EXIT
trap 'rc=$?; cleanup; guard_exit "$rc" || exit $?' EXIT
# Creates a draft page from a fixture file as the admin (no kses re-serialization) and prints its ID.
create_page() { # $1 = fixture file, $2 = title
@@ -98,4 +98,4 @@ pass "content-get points to the Divi tools; Divi 4 content is refused"
[ "$(content_hash "$PAGE_ID")" = "$BEFORE" ] || fail "reading changed post_content"
pass "post_content unchanged after reading"
echo "ALL CHECKS PASSED"
finish