Leave out private jars
Change-Id: Icc70ac16e1b11b8cb176dd335d7aedf3a2b3a595
diff --git a/tools/build/onos-prepare-sonar b/tools/build/onos-prepare-sonar
index bda884b..ba14043 100755
--- a/tools/build/onos-prepare-sonar
+++ b/tools/build/onos-prepare-sonar
@@ -230,6 +230,8 @@
for target in targets:
colon = target.find(':')
base_target = target[0:colon]
+ if target[colon+1] == '_':
+ continue
target_query_result = run_command(['bazel', 'query', 'tests(' + base_target + ':*)'])
for result_line in target_query_result:
if "src/test" in result_line: