diff options
author | Ayush Ranjan <ayushranjan@google.com> | 2020-07-08 12:03:28 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-07-08 12:05:04 -0700 |
commit | e3db9bda60580df127ea445fc1f862864c5451f9 (patch) | |
tree | 9967a613cabddebaca9dd03fc1920457e4512660 /test | |
parent | efa2615eb008a642dc542176759dc560c5f48a2d (diff) |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/runtimes/runner/main.go | 5 |
1 files changed, 5 insertions, 0 deletions
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. |