[3.0] Updated patch-coverage tool to catch fewer errors 10/84910/3
authorDavid Steele <david.steele@samsung.com>
Mon, 8 Aug 2016 19:56:38 +0000 (20:56 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Wed, 24 Aug 2016 18:12:52 +0000 (11:12 -0700)
commitfa7afc294a77adcdd9a21fda171b2b470852949d
treea02e407d6d2a9145e589b9038d77f7d13dcaa396
parent6d99bfe01603c07b90c876da3d87771315c4c0a8
[3.0] Updated patch-coverage tool to catch fewer errors

Patch coverage tool was catching coverage errors for files in
non-source tree and of non-source code, also was catching changes
that had no coverage change.

Also added mechanism to choose the right patch, or to fail
if there are changes in both the working tree and the index.

Also added html output.

One minor gotcha spotted - added test code which was in-advertently covered
because of a case fallthrough, and passed, though this then caused unchanged
code to reduce in coverage.

Change-Id: I36925a98f8c491c9987355398bec9cb3b8f55c5f
Signed-off-by: David Steele <david.steele@samsung.com>
automated-tests/patch-coverage.pl