test(bzlmod): explicitly enable bzlmod in the test harness (#1204)
Previously we would depend on the value of .bazelrc and this
change ensures that we are explicitly enable bzlmod via CLI
args. It seems that the `py_proto_library` integration tests
defined in the `//examples:BUILD.bazel` file were not running
using `bzlmod` before hand, however, they were correctly
executed in the CI.
Work towards #958.
diff --git a/tools/bazel_integration_test/test_runner.py b/tools/bazel_integration_test/test_runner.py
index 03599fb..3940e87 100644
--- a/tools/bazel_integration_test/test_runner.py
+++ b/tools/bazel_integration_test/test_runner.py
@@ -79,6 +79,7 @@
"--override_module=rules_python=%s/rules_python"
% os.environ["TEST_SRCDIR"]
)
+ bazel_args.append("--enable_bzlmod")
# Bazel's wrapper script needs this or you get
# 2020/07/13 21:58:11 could not get the user's cache directory: $HOME is not defined