aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Chinchilla <cachinchilla@google.com>2023-11-08 22:24:32 +0000
committerCQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-11-08 22:24:32 +0000
commit7e0fad2cc3790f1de04f670b9ffea92a644bb91a (patch)
tree75976960bf0a76fa27e8c4d0f4381fa8dfdbaf2c
parent996a3479d45a601d8a9aa68f7acf282800226191 (diff)
downloadpigweed-7e0fad2cc3790f1de04f670b9ffea92a644bb91a.tar.gz
pw_i2c: Mark libs as test only in bazel
Libraries declared in bazel that depend on googletest should have testonly set to True. Bug: 309665550 Change-Id: Ie484538d469f0b21c8690d7332ba8e9ab8d998f0 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/179836 Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com> Reviewed-by: Ted Pudlik <tpudlik@google.com> Pigweed-Auto-Submit: Carlos Chinchilla <cachinchilla@google.com> Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
-rw-r--r--pw_i2c/BUILD.bazel1
1 files changed, 1 insertions, 0 deletions
diff --git a/pw_i2c/BUILD.bazel b/pw_i2c/BUILD.bazel
index 212ae7913..a9d0af354 100644
--- a/pw_i2c/BUILD.bazel
+++ b/pw_i2c/BUILD.bazel
@@ -117,6 +117,7 @@ pw_cc_library(
pw_cc_library(
name = "initiator_gmock",
+ testonly = True,
hdrs = [
"public/pw_i2c/initiator_gmock.h",
],