Skip to content

Commit

Permalink
[bazel] Use the name of the test suite if possible to create a target
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Sep 7, 2020
1 parent 1bedc54 commit 7bd9f31
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions java/private/test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,17 @@ def java_test_suite(
**kwargs
)

native.test_suite(
name = "%s-suite" % name,
tests = tests,
tags = ["manual"] + tags,
visibility = visibility,
)
if name in srcs:
native.test_suite(
name = "%s-suite" % name,
tests = tests,
tags = ["manual"] + tags,
visibility = visibility,
)
else:
native.test_suite(
name = name,
tests = tests,
tags = ["manual"] + tags,
visibility = visibility,
)

0 comments on commit 7bd9f31

Please sign in to comment.