Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export
BAZEL_TEST=1
for bazel test
executables
[Catch2][catch2] has [learnt][pr2399] how to output JUnit to the `XML_OUTPUT_FILE`. However, the upstream developers [felt][comment] that `XML_OUTPUT_FILE` is too generic to blanket enable JUnit output to the file as there are various XML reporters for Catch2. This patch enables exporting `BAZEL_TEST` environment variable so that Catch2 can enable JUnit output support unconditionally in their build when both `BAZEL_TEST` _and_ `XML_OUTPUT_FILE` are available. [catch2]: https://github.com/catchorg/Catch2 [pr2399]: catchorg/Catch2#2399 [comment]: catchorg/Catch2#2399 (comment) Closes #15393. PiperOrigin-RevId: 447706388
- Loading branch information