Commit 38ec86d2 authored by Karan Bhatia's avatar Karan Bhatia Committed by Commit Bot

DNR tests: Return false in CreateVerifiedMatcher on seeing install warnings.

This helps debugging in tests when some rules fail to index correctly.

BUG=696822

Change-Id: I38be0f707e7de7b5a4be49aacb037b7d9bd42fbd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1911279
Commit-Queue: Kelvin Jiang <kelvinjiang@chromium.org>
Auto-Submit: Karan Bhatia <karandeepb@chromium.org>
Reviewed-by: default avatarKelvin Jiang <kelvinjiang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#715110}
parent abd1534c
......@@ -129,6 +129,9 @@ bool CreateVerifiedMatcher(const std::vector<TestRule>& rules,
return false;
}
if (!result.warnings.empty())
return false;
if (expected_checksum)
*expected_checksum = result.ruleset_checksum;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment