test: Split up long tests into multiple sub tests again

I think we need this for non --race tests too.
This commit is contained in:
James Shubin
2019-07-21 00:55:36 -04:00
parent 3651ab5c0c
commit 9ca6c6a315

View File

@@ -61,7 +61,16 @@ else
run-test go test -count=1 -race "$pkg" run-test go test -count=1 -race "$pkg"
fi fi
else 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 fi
done done
fi fi