From 8a177f694ab0884e0a7767675098a96b7c0f02a8 Mon Sep 17 00:00:00 2001 From: Wei Li Date: Fri, 14 Jan 2022 15:45:18 -0800 Subject: [PATCH] Set exclude_kotlinc_generated_files to false explicitly since kotlin reflection is used in some Connectivity test cases kotlin code. Property "exclude_kotlinc_generated_files" is recently added to exclude some kotlinc generated files that are not needed if kotlin reflection is not used. Currently it defaults to false since there are test failures(b/213966211) which is in FullScoreTest#testToString and FullScoreTest#testMinMaxPolicyConstants that uses kotlin reflection and fails if exclude_kotlinc_generated_files defaults to true. By setting explicitly exclude_kotlinc_generated_files to false on tests like FullScoreTest#testToString, we will be able to finally default this property to true so the kotlinc generated files can be removed for most modules that don't need them. Bug: 204888276 Bug: 213966211 Test: atest FrameworksNetTests: com.android.server.connectivity.FullScoreTest Change-Id: I4ed2d27c27841cb7127f669c8db34c90b4a41b1f --- tests/unit/Android.bp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/Android.bp b/tests/unit/Android.bp index 2b698fd1d2..cb446f1181 100644 --- a/tests/unit/Android.bp +++ b/tests/unit/Android.bp @@ -143,6 +143,7 @@ android_library { "ServiceConnectivityResources", ], visibility: ["//packages/modules/Connectivity/tests:__subpackages__"], + exclude_kotlinc_generated_files: false, } android_test {