[3.0] Updated patch-coverage tool to catch fewer errors 45/85345/3
authorDavid Steele <david.steele@samsung.com>
Mon, 8 Aug 2016 19:36:28 +0000 (20:36 +0100)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Wed, 24 Aug 2016 18:09:57 +0000 (11:09 -0700)
commit0c32319565cdceccba5f5f5b5d64a42665504269
tree9a058f092eaaf71b4ada48bdfda86fa3b045c74b
parentcbd77719557367affbd50a1ff3682b72cd4c4419
[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: Id49d30935b2dc9ef3145bf6bc78ec7510de01fd0
Signed-off-by: David Steele <david.steele@samsung.com>
automated-tests/patch-coverage.pl