Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Windows: add --incompatible_windows_native_test_wrapper
Add the --incompatible_windows_native_test_wrapper flag (default: false). This flag has no effect on platforms other than Windows. When using `bazel test`, Bazel does not execute tests directly. Instead Bazel runs a "test wrapper" as a subprocess, which sets up the environment for the test and runs the test. By default, Bazel uses a Bash script (`@bazel_tools//tools/test:test-setup.sh`) as the test wrapper, on all platforms. The new flag allows using an alternative test wrapper written in C++ that does not depend on Bash. Flag semantics: - When true: Bazel uses the C++ test wrapper from `@bazel_tools//tools/test:tw`. This test wrapper does not depend on Bash. - When false: Bazel uses the Bash script test wrapper also used on every other platform, from `@bazel_tools//tools/test:test-setup.sh`. This script requires Bash. Incompatible flag: bazelbuild#6622 Related: bazelbuild#5508 RELNOTES[NEW]: Added --incompatible_windows_native_test_wrapper flag: enables using the Bash-less test wrapper on Windows. (No-op on other platforms.)
- Loading branch information