Refactor some tests to not use bp2build_avail

Bug: 301312260
Test: presubmits
Change-Id: I67ca45f17d11e9b893fae5f6c6df1239ae4220b6
This commit is contained in:
Chris Parsons
2023-09-21 15:30:27 +00:00
parent f2d858e5ba
commit 4c81ce0307
7 changed files with 21 additions and 33 deletions

View File

@@ -140,7 +140,8 @@ func TestJavaProtoDefault(t *testing.T) {
func TestJavaLibsAndOnlyProtoSrcs(t *testing.T) {
runJavaProtoTestCase(t, Bp2buildTestCase{
Description: "java_library that has only proto srcs",
Description: "java_library that has only proto srcs",
StubbedBuildDefinitions: []string{"java-lib"},
Blueprint: `java_library_static {
name: "java-protos",
srcs: ["a.proto"],
@@ -151,7 +152,6 @@ func TestJavaLibsAndOnlyProtoSrcs(t *testing.T) {
java_library_static {
name: "java-lib",
bazel_module: { bp2build_available: false },
}
`,
ExpectedBazelTargets: []string{