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

@@ -32,8 +32,9 @@ func runJavaTestHostTestCase(t *testing.T, tc Bp2buildTestCase) {
func TestJavaTestHostGeneral(t *testing.T) {
runJavaTestHostTestCase(t, Bp2buildTestCase{
Description: "java_test_host general",
Filesystem: map[string]string{},
Description: "java_test_host general",
Filesystem: map[string]string{},
StubbedBuildDefinitions: []string{"lib_a", "lib_b"},
Blueprint: `
java_test_host {
name: "java_test_host-1",
@@ -47,12 +48,10 @@ java_test_host {
java_library {
name: "lib_a",
bazel_module: { bp2build_available: false },
}
java_library {
name: "static_libs_a",
bazel_module: { bp2build_available: false },
}
`,
ExpectedBazelTargets: []string{