From 7b79fcade028649c0d25e75f987bc42037dbf29b Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Fri, 9 Aug 2024 18:05:31 +0200 Subject: [PATCH] Enable bzlmod for AnalysisTestCase.java --- failed_tests | 3 +++ .../devtools/build/lib/analysis/util/AnalysisTestCase.java | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/failed_tests b/failed_tests index f5460f584e308d..c739e48ef4fef6 100644 --- a/failed_tests +++ b/failed_tests @@ -1,5 +1,8 @@ //src/test/java/com/google/devtools/build/lib/analysis:AbstractConfiguredTargetTest //src/test/java/com/google/devtools/build/lib/analysis/allowlisting:AllowlistingTests + +==== ^^ Fixed ^^ ==== + //src/test/java/com/google/devtools/build/lib/analysis:AnalysisTests //src/test/java/com/google/devtools/build/lib/analysis:AnalysisUtilsTest //src/test/java/com/google/devtools/build/lib/analysis:CachingTest diff --git a/src/test/java/com/google/devtools/build/lib/analysis/util/AnalysisTestCase.java b/src/test/java/com/google/devtools/build/lib/analysis/util/AnalysisTestCase.java index f64710c9be5b15..a64abf0913dc87 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/util/AnalysisTestCase.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/util/AnalysisTestCase.java @@ -354,8 +354,6 @@ public void useConfiguration(String... args) throws Exception { } if (defaultFlags().contains(Flag.ENABLE_BZLMOD)) { optionsParser.parse("--enable_bzlmod"); - } else { - optionsParser.parse("--noenable_bzlmod"); } if (defaultFlags().contains(Flag.NO_LEGACY_EXTERNAL_RUNFILES)) { optionsParser.parse("--nolegacy_external_runfiles");