From 24d6eb58e51be706ae66db31d027e2400307152f Mon Sep 17 00:00:00 2001 From: Adin Scannell Date: Wed, 2 Dec 2020 11:35:54 -0800 Subject: Skip generating an empty (broken) test case. It's possible that all the cases in a given batch are excluded if the offsets line up just right, which will cause the test to fail. Don't generate an invalid test in this case. PiperOrigin-RevId: 345276588 --- test/runtimes/runner/lib/lib.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/runtimes/runner/lib') diff --git a/test/runtimes/runner/lib/lib.go b/test/runtimes/runner/lib/lib.go index 64e6e14db..2f1083baf 100644 --- a/test/runtimes/runner/lib/lib.go +++ b/test/runtimes/runner/lib/lib.go @@ -122,6 +122,10 @@ func getTests(ctx context.Context, d *dockerutil.Container, lang, image string, } tcs = append(tcs, tests[tc]) } + if len(tcs) == 0 { + // No tests to add to this batch. + continue + } itests = append(itests, testing.InternalTest{ Name: strings.Join(tcs, ", "), F: func(t *testing.T) { -- cgit v1.2.3