diff options
author | Cole Faust <colefaust@google.com> | 2023-03-27 11:23:01 -0700 |
---|---|---|
committer | Cole Faust <colefaust@google.com> | 2023-03-28 09:51:14 -0700 |
commit | 42e8b0f13825cf6962a7e5c95c150656a83daf19 (patch) | |
tree | a1d51d597af0baf8b66f696cdc253806eecd22d3 /rules/apex/apex_test.bzl | |
parent | 1284c67ecb6a3c13004645229600b2f6bd7d94cf (diff) | |
download | bazel-42e8b0f13825cf6962a7e5c95c150656a83daf19.tar.gz |
Read apex compression product var in a transition-friendly way
Start storing product config variables in
//build/bazel/product_config:product_vars, starting with CompressedApex.
//build/bazel/product_config:product_vars is an alias to a select
statement that will select the appropriate target to use for the current
android product, so the product config variable will have the correct
value if we transition into another product.
Bug: 269577299
Test: b test --config=android //build/bazel/...
Change-Id: Id148933679c9f3230892766f64fe20312b4802ce
Diffstat (limited to 'rules/apex/apex_test.bzl')
-rw-r--r-- | rules/apex/apex_test.bzl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/apex/apex_test.bzl b/rules/apex/apex_test.bzl index a77bc499..c7648073 100644 --- a/rules/apex/apex_test.bzl +++ b/rules/apex/apex_test.bzl @@ -2380,7 +2380,7 @@ def _apex_compression_test(ctx): apex_compression_test = analysistest.make( _apex_compression_test, config_settings = { - "@//build/bazel/rules/apex:compression_enabled": True, + "//command_line_option:platforms": "@soong_injection//product_config_platforms/products/aosp_arm64_for_testing", }, ) @@ -2415,7 +2415,7 @@ def _apex_no_compression_test(ctx): apex_no_compression_test = analysistest.make( _apex_no_compression_test, config_settings = { - "@//build/bazel/rules/apex:compression_enabled": False, + "//command_line_option:platforms": "@soong_injection//product_config_platforms/products/aosp_arm64_for_testing_no_compression", }, ) |