Updated patch-coverage tool to catch fewer errors 21/83021/1
authorDavid Steele <david.steele@samsung.com>
Mon, 8 Aug 2016 19:56:38 +0000 (20:56 +0100)
committerDavid Steele <david.steele@samsung.com>
Mon, 8 Aug 2016 19:56:38 +0000 (20:56 +0100)
commited8cdeac5f4d95045ba547bab6a6267d9d760440
tree92cbd482fb7a7e6fee6801b8ce3f429b2a0ae213
parentd96247d2bcba33c68ec23ccb56bb88913e37a6ae
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