Skip to content

Commit 1f177c9

Browse files
committed
Don't soft-fail tests when ANDROID_HOME is not there
1 parent 9fedc6e commit 1f177c9

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

tests/scripts/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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",

tests/scripts/android_lint_aar_scenarios_test.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff 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-
3829
function 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

5040
function 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

0 commit comments

Comments
 (0)