commit | ef346b3f2ca94edc7a87eaa766ce08bbccf19431 | [log] [tgz] |
---|---|---|
author | Prashanth Swaminathan <prashanthsw@google.com> | Thu Mar 04 17:01:25 2021 -0800 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Mar 05 01:45:19 2021 +0000 |
tree | 15af96c7d504a370396c7eef545099d970459324 | |
parent | 44d4461932fc6216b7069c4141c12527262f4f5f [diff] |
pw_presubmit: Fix link to static analyzer report Missing field in the error message points to an individual report file instead of the top-level report page. Change-Id: Id7e679407f525973f4bbfb4630167c1abeef928a Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/35580 Pigweed-Auto-Submit: Prashanth Swaminathan <prashanthsw@google.com> Reviewed-by: Anthony DiGirolamo <tonymd@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
diff --git a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py index 5b4b677..d136b77 100755 --- a/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py +++ b/pw_presubmit/py/pw_presubmit/pigweed_presubmit.py
@@ -546,7 +546,7 @@ reports[0].parent) _LOG.error('Static analyzer found errors: %s', archive) _LOG.error('To view report, open: %s', - Path(reports[0]).joinpath('index.html')) + Path(reports[0]).parent.joinpath('index.html')) raise PresubmitFailure