Skip to content

Commit

Permalink
Fix duplicate testonly attributes being passed to kt_android_local_te…
Browse files Browse the repository at this point in the history
…st (#560)
  • Loading branch information
Bencodes authored Jul 21, 2021
1 parent 6423eb3 commit 2e7d520
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kotlin/internal/jvm/android.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def kt_android_local_test(
flaky = False,
shard_count = None,
visibility = None,
testonly = True,
**kwargs):
"""Creates a testable Android sandwich library.
Expand All @@ -98,7 +99,7 @@ def kt_android_local_test(
"""
android_local_test(
name = name,
deps = kwargs.get("deps", []) + _kt_android_artifact(name = name, testonly = True, **kwargs),
deps = kwargs.get("deps", []) + _kt_android_artifact(name = name, testonly = testonly, **kwargs),
jvm_flags = jvm_flags,
test_class = test_class,
visibility = visibility,
Expand All @@ -110,5 +111,5 @@ def kt_android_local_test(
manifest = manifest,
manifest_values = manifest_values,
tags = kwargs.get("tags", default = None),
testonly = kwargs.get("testonly", default = True),
testonly = testonly,
)

0 comments on commit 2e7d520

Please sign in to comment.