Skip to content

Commit 0ef42dc

Browse files
committed
Run Bazel inside shell tests with --nohome_rc --nosystem_rc.
This prevents the test from accidentally passing or failing due to the state of any $HOME/.bazelrc or system-wide bazelrc files.
1 parent 52d61f3 commit 0ef42dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/shell/bin/bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ bazel_bin=$(rlocation io_bazel/src/bazel)
2323
unset RUNFILES_DIR
2424
unset RUNFILES_MANIFEST_FILE
2525
unset RUNFILES_MANIFEST_ONLY
26-
exec $bazel_bin --bazelrc=$TEST_TMPDIR/bazelrc "$@"
26+
exec $bazel_bin --nohome_rc --nosystem_rc --bazelrc=$TEST_TMPDIR/bazelrc "$@"

0 commit comments

Comments
 (0)