From e3db9bda60580df127ea445fc1f862864c5451f9 Mon Sep 17 00:00:00 2001 From: Ayush Ranjan Date: Wed, 8 Jul 2020 12:03:28 -0700 Subject: Enable shards in runtime test runner. Fixed an issue with the runtime test runner which enables us to run tests in shards. We had to touch the status file as indicated by an env var. PiperOrigin-RevId: 320236205 --- test/runtimes/runner/main.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test') diff --git a/test/runtimes/runner/main.go b/test/runtimes/runner/main.go index 54d1169ef..a00c64d27 100644 --- a/test/runtimes/runner/main.go +++ b/test/runtimes/runner/main.go @@ -63,6 +63,11 @@ func runTests() int { d := dockerutil.MakeDocker(testutil.DefaultLogger(*lang)) defer d.CleanUp() + if err := testutil.TouchShardStatusFile(); err != nil { + fmt.Fprintf(os.Stderr, "error touching status shard file: %v\n", err) + return 1 + } + // Get a slice of tests to run. This will also start a single Docker // container that will be used to run each test. The final test will // stop the Docker container. -- cgit v1.2.3