Fix bazel_test_test when --local_test_jobs is set in system-wide bazelrc.
Explicitly set local test jobs to 0 (= default, use local resources instead),
as otherwise this test will fail if --local_test_jobs is set in a system-wide
bazelrc.
@@ -69,7 +69,8 @@ function test_3_cpus() {
set_up_jobcount
# 3 CPUs, so no more than 3 tests in parallel.
bazel test --spawn_strategy=standalone --test_output=errors \
- --local_resources=10000,3,100 --runs_per_test=10 //dir:test
+ --local_test_jobs=0 --local_resources=10000,3,100 \
+ --runs_per_test=10 //dir:test
}
function test_3_local_jobs() {
