diff options
author | ulfjack <ulfjack@google.com> | 2018-07-27 02:37:53 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-07-27 02:39:03 -0700 |
commit | 0858ae1f6eb890c1e203a2aa21130ba34ca36a27 (patch) | |
tree | 98dd4c592049bf545ecabd6582f2a93d8d43f1d7 /tools/test/BUILD | |
parent | d0190d3503f3adb0655579312ee359c67291992d (diff) |
Add a flag to split test.xml generation into a separate Spawn
At this time, this is only implemented for the StandaloneTestStrategy.
This solves a race condition on Posix-like systems, where we cannot guarantee that the pipes are actually fully flushed to disk when the test process exits, and this can cause the test.xml to be empty, which makes it hard to debug issues. (The test.log files do not show up in normal CI systems, only the test.xml files.)
Progress on #4608.
PiperOrigin-RevId: 206292179
Diffstat (limited to 'tools/test/BUILD')
-rw-r--r-- | tools/test/BUILD | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/test/BUILD b/tools/test/BUILD index 4a4e56b284..c6a8311033 100644 --- a/tools/test/BUILD +++ b/tools/test/BUILD @@ -2,6 +2,7 @@ package(default_visibility = ["//visibility:public"]) # Members of this filegroup shouldn't have duplicate basenames, otherwise # TestRunnerAction#getRuntimeArtifact() will get confused. +# Deprecated, do not use. filegroup( name = "runtime", srcs = ["test-setup.sh"], @@ -13,6 +14,11 @@ filegroup( ) filegroup( + name = "test_xml_generator", + srcs = ["generate-xml.sh"], +) + +filegroup( name = "collect_coverage", srcs = ["collect_coverage.sh"], ) |