Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(A10): sourcing test-env.sh sets the coverage wait multiplier
garrytan46bdbc2e5e5b
diff --git a/scripts/lib/test-env.sh b/scripts/lib/test-env.shindex b39df9d0ca..665e4ac498 100644--- a/scripts/lib/test-env.sh+++ b/scripts/lib/test-env.sh@@ -111,10 +111,9 @@ ensure_default_pglite_snapshot() {# set) exports GBRAIN_TEST_WAIT_MULTIPLIER=2 unless the caller chose a value.# test/helpers/wait-for.ts scales every waitFor deadline by it and keeps the# result below bun's 60s per-test timeout. The bun preload keeps GBRAIN_TEST_*-# and run-e2e.sh's env scrub keep-lists the name.+# and run-e2e.sh's env scrub keep-lists the name. Runs when this file is+# sourced, so every runner that sources it gets the same default.# ──────────────────────────────────────────────────────────────────────────-export_coverage_wait_multiplier() {- if [ -n "${COVERAGE_DIR:-}" ] && [ -z "${GBRAIN_TEST_WAIT_MULTIPLIER:-}" ]; then- export GBRAIN_TEST_WAIT_MULTIPLIER=2- fi-}+if [ -n "${COVERAGE_DIR:-}" ] && [ -z "${GBRAIN_TEST_WAIT_MULTIPLIER:-}" ]; then+ export GBRAIN_TEST_WAIT_MULTIPLIER=2+fidiff --git a/scripts/run-e2e.sh b/scripts/run-e2e.shindex f3a260d49e..78c6a4e6db 100755--- a/scripts/run-e2e.sh+++ b/scripts/run-e2e.sh@@ -236,7 +236,6 @@ fi# Files asserting the path TO post-initSchema state carry their own per-file# `delete process.env.GBRAIN_PGLITE_SNAPSHOT` opt-out.. scripts/lib/test-env.sh-export_coverage_wait_multiplierensure_pglite_snapshot "run-e2e"# Absolutize: e2e tests spawn CLI subprocesses with varying cwd; a relative# path would silently miss the tar there (cold-init fallback, benefit lost).diff --git a/scripts/run-serial-tests.sh b/scripts/run-serial-tests.shindex 318fcd307d..91bcb131bf 100755--- a/scripts/run-serial-tests.sh+++ b/scripts/run-serial-tests.sh@@ -73,7 +73,6 @@ case "${1:-}" inesac. scripts/lib/test-env.sh-export_coverage_wait_multiplier# ──────────────────────────────────────────────────────────────────────────# EXCLUSIVE_FILES: files that must never run concurrently with anything elsediff --git a/scripts/test-shard.sh b/scripts/test-shard.shindex 0e576157a9..21d29dbb94 100755--- a/scripts/test-shard.sh+++ b/scripts/test-shard.sh@@ -58,7 +58,6 @@ ficd "$(dirname "$0")/..". scripts/lib/test-env.sh-export_coverage_wait_multiplier# Collect non-E2E, non-serial unit test files. Slow files INCLUDED — see# header comment. Local run-unit-shard.sh excludes slow files (different