File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ script_test(
4343 name = "android_lint_aar_scenarios_test" ,
4444 size = "enormous" ,
4545 srcs = ["android_lint_aar_scenarios_test.sh" ],
46+ additional_env_inherit = ["ANDROID_HOME" ],
4647 bazel_binaries = bazel_binaries ,
4748 bazel_version = bazel_binaries .versions .current ,
48- env_inherit = ["ANDROID_HOME" ],
4949 tags = ["exclusive" ],
5050 deps = [
5151 ":lint_helper" ,
Original file line number Diff line number Diff line change @@ -26,17 +26,7 @@ function set_up() {
2626 enable_android_in_workspace
2727}
2828
29- # Skips the calling test when no Android SDK is available.
30- function require_android_home() {
31- if [[ -z " ${ANDROID_HOME:- } " ]]; then
32- echo " ANDROID_HOME is not set; skipping AAR scenario"
33- return 1
34- fi
35- return 0
36- }
37-
3829function test_aar_embedded_lint_jar_flags_issue() {
39- require_android_home || return 0
4030 write_composable_annotation_stub
4131 write_dirty_composable
4232 write_fixture_aar
@@ -48,7 +38,6 @@ function test_aar_embedded_lint_jar_flags_issue() {
4838}
4939
5040function test_aar_embedded_lint_jar_accepts_clean_composable() {
51- require_android_home || return 0
5241 write_composable_annotation_stub
5342 write_clean_composable
5443 write_fixture_aar
You can’t perform that action at this time.
0 commit comments