From 8a532b78e547bfbfa49d11a01b21e4a45b51da2c Mon Sep 17 00:00:00 2001 From: Chris Parsons Date: Wed, 27 Sep 2023 23:11:26 +0000 Subject: Update bp2build tests to use stubbed defs bp2build tests should not use bp2build_available:false test deps, because, with the "allowlist v2" feature, this will cause these modules to stop being converted with bp2build. Instead, such test deps should be "stubbed", which effectively treats them like targets in pre-existing BUILD files on the filesystem. Bug: 301312260 Test: m nothing Change-Id: Ib1ce7c87cd1e98568fdaf2a52a893dafa74ab327 --- bp2build/java_test_host_conversion_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bp2build/java_test_host_conversion_test.go') diff --git a/bp2build/java_test_host_conversion_test.go b/bp2build/java_test_host_conversion_test.go index 95c239dbf..87f35f6bc 100644 --- a/bp2build/java_test_host_conversion_test.go +++ b/bp2build/java_test_host_conversion_test.go @@ -97,14 +97,13 @@ java_test_host { java_library { name: "lib_a", - bazel_module: { bp2build_available: false }, } java_library { name: "static_libs_a", - bazel_module: { bp2build_available: false }, } `, + StubbedBuildDefinitions: []string{"lib_a", "static_libs_a"}, ExpectedBazelTargets: []string{ MakeBazelTarget("java_test", "java_test_host-1", AttrNameToString{ "runtime_deps": `[ -- cgit v1.2.3