From b05565f232d60bdb6c9a00c498ddd4cfca877bff Mon Sep 17 00:00:00 2001 From: isaaclins <104733575+isaaclins@users.noreply.github.com> Date: Thu, 3 Sep 2026 18:03:31 +0200 Subject: [PATCH] build: give local test runs the same per-test timeout as CI CI already fails fast and names a wedged test; make test did not, so a hang on a developer machine looked like a slow suite and had to be killed by hand. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 565458d..234273c 100644 --- a/Makefile +++ b/Makefile @@ -149,12 +149,18 @@ install-driver: build-driver sign-driver fi test: audit-eq-permission + # Per-test timeouts match CI. A wedged test once burned 40 minutes here + # and reported nothing about which test it was; with timeouts on, the run + # fails fast and names it. The slowest legitimate test takes about a + # second, so 120s is a ceiling no honest test can reach. xcodebuild \ -project $(PROJECT) \ -scheme $(SCHEME) \ -destination '$(DESTINATION)' \ -derivedDataPath $(DERIVED_DATA) \ -parallel-testing-enabled NO \ + -test-timeouts-enabled YES \ + -maximum-test-execution-time-allowance 120 \ $(CODE_SIGN_FLAGS) \ $(XCODE_EXTRA) \ test