diff --git a/swift_cc_defs.bzl b/swift_cc_defs.bzl index 96c281ab..777f4e03 100644 --- a/swift_cc_defs.bzl +++ b/swift_cc_defs.bzl @@ -44,5 +44,5 @@ def swift_cc_test(name, type, **kwargs): fail("The 'type' attribute must be either UNIT or INTEGRATION") kwargs["name"] = name - kwargs["tags"] = [type] + kwargs["tags"] = (kwargs["tags"] if "tags" in kwargs else []) + [type] native.cc_test(**kwargs)