From 42d7ac96bcdddec777f2962c82410751df91e38b Mon Sep 17 00:00:00 2001 From: Alix Date: Wed, 11 Oct 2023 19:42:50 +0000 Subject: [PATCH] TestJavaHostGeneral Fix This fixes "expected 2 bazel modules in "." but did not find any" error that the test was getting. Test: got test ./bp2build Change-Id: I376c7c9974d301fc85894ecf2b0838c863a74a47 --- bp2build/Android.bp | 1 + bp2build/java_test_host_conversion_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bp2build/Android.bp b/bp2build/Android.bp index e30e53d86..a93fb38c8 100644 --- a/bp2build/Android.bp +++ b/bp2build/Android.bp @@ -77,6 +77,7 @@ bootstrap_go_package { "java_proto_conversion_test.go", "java_sdk_library_conversion_test.go", "java_sdk_library_import_conversion_test.go", + "java_test_host_conversion_test.go", "license_conversion_test.go", "license_kind_conversion_test.go", "linker_config_conversion_test.go", diff --git a/bp2build/java_test_host_conversion_test.go b/bp2build/java_test_host_conversion_test.go index 87f35f6bc..1a98ea2e9 100644 --- a/bp2build/java_test_host_conversion_test.go +++ b/bp2build/java_test_host_conversion_test.go @@ -34,7 +34,7 @@ func TestJavaTestHostGeneral(t *testing.T) { runJavaTestHostTestCase(t, Bp2buildTestCase{ Description: "java_test_host general", Filesystem: map[string]string{}, - StubbedBuildDefinitions: []string{"lib_a", "lib_b"}, + StubbedBuildDefinitions: []string{"lib_a", "static_libs_a"}, Blueprint: ` java_test_host { name: "java_test_host-1",