quiet test reporter to failures-only + front-load coverage in push-check (T-242)

This commit is contained in:
2026-06-05 15:24:11 +02:00
parent 59808179a1
commit 51ae7c61f1
6 changed files with 130 additions and 8 deletions
+5 -1
View File
@@ -25,6 +25,10 @@ fi
# hang.
TIMEOUT_SECONDS=${TIMEOUT_SECONDS:-120}
# failures-only: print failing tests + a final count, not one line per test.
# Override with TEST_REPORTER=expanded when debugging. (T-242)
REPORTER="${TEST_REPORTER:-failures-only}"
# Run dart test in its own process group so we can kill descendants on
# timeout. `setsid` starts a new session; `timeout --kill-after` SIGKILLs
# after SIGTERM if the test ignores it.
@@ -32,7 +36,7 @@ CORE_DIRS="test/ipc test/pty test/daemon test/git test/panes test/files test/edi
echo "test-core: dart test ${CORE_DIRS} (timeout ${TIMEOUT_SECONDS}s)"
if ! timeout --kill-after=5s "${TIMEOUT_SECONDS}s" \
setsid --wait dart test $CORE_DIRS ; then
setsid --wait dart test -r "$REPORTER" $CORE_DIRS ; then
rc=$?
if [[ $rc -eq 124 ]]; then
echo "test-core: TIMEOUT — killing descendants" >&2