Don't set `--platforms`, `--host_platform`, or `--experimental_extended_sanity_checks` in all tests.
PiperOrigin-RevId: 629721413
Change-Id: I8fc0c8ebe5cb8621019db091095666348135e9f8
diff --git a/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java b/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java
index 4cef00b..84bafd2 100644
--- a/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java
+++ b/src/test/java/com/google/devtools/build/lib/analysis/util/BuildViewTestCase.java
@@ -435,19 +435,8 @@
protected BuildOptions createBuildOptions(String... args)
throws OptionsParsingException, InvalidConfigurationException {
- ImmutableList.Builder<String> allArgs = new ImmutableList.Builder<>();
-
- // Add standard flags.
- allArgs.add("--experimental_extended_sanity_checks");
- // Always default to k8, even on mac and windows. Tests that need different platform should set
- // it using {@link useConfiguration()} with (--platforms=foo) explicitly.
- allArgs.add("--platforms=" + TestConstants.PLATFORM_LABEL);
- allArgs.add("--host_platform=" + TestConstants.PLATFORM_LABEL);
-
- // Now the flags from the test.
- allArgs.add(args);
-
- return skyframeExecutor.createBuildOptionsForTesting(reporter, allArgs.build());
+ ImmutableList<String> allArgs = ImmutableList.copyOf(args);
+ return skyframeExecutor.createBuildOptionsForTesting(reporter, allArgs);
}
protected Target getTarget(String label)