From 9ca6c6a315eb7c43ece168c84947e2006f24b0b7 Mon Sep 17 00:00:00 2001 From: James Shubin Date: Sun, 21 Jul 2019 00:55:36 -0400 Subject: [PATCH] test: Split up long tests into multiple sub tests again I think we need this for non --race tests too. --- test/test-gotest.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/test/test-gotest.sh b/test/test-gotest.sh index 5d852063..dfbab47c 100755 --- a/test/test-gotest.sh +++ b/test/test-gotest.sh @@ -61,7 +61,16 @@ else run-test go test -count=1 -race "$pkg" fi else - run-test go test -count=1 "$pkg" + # split up long tests to avoid CI timeouts + if [ "$pkg" = "${base}/lang" ]; then # pkg lang is big! + for sub in `go test "${base}/lang" -list Test`; do + if [ "$sub" = "ok" ]; then break; fi # skip go test output artifact + echo -e "\t\tsub-testing: $sub" + run-test go test -count=1 "$pkg" -run "$sub" + done + else + run-test go test -count=1 "$pkg" + fi fi done fi