From 55f169abaa1a6adb9f40dc841df44a5013c35e75 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 30 Apr 2024 11:19:25 -0700 Subject: [PATCH] Raise test timeout when running soong tests with race detector The apex tests sometimes hit the default 10 minute timeout when running with the race detector enabled in the aosp-build-tools builds. Test: treehugger Flag: NONE Change-Id: I6092a0c68c3b79cd24cdd4a6a8614f7eced7dc1a --- scripts/run-soong-tests-with-go-tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/run-soong-tests-with-go-tools.sh b/scripts/run-soong-tests-with-go-tools.sh index 93c622ea4..1fbb1fc77 100755 --- a/scripts/run-soong-tests-with-go-tools.sh +++ b/scripts/run-soong-tests-with-go-tools.sh @@ -74,6 +74,6 @@ for dir in "${go_modules[@]}"; do (cd "$dir"; eval ${network_jail} -- ${GOROOT}/bin/go build ./... eval ${network_jail} -- ${GOROOT}/bin/go test ./... - eval ${network_jail} -- ${GOROOT}/bin/go test -race -short ./... + eval ${network_jail} -- ${GOROOT}/bin/go test -race -timeout 20m -short ./... ) done