Allow cover violation
Change-Id: I9b0533ee59f9a2e4d59013f85dc5be707578b429 Signed-off-by: Andriy Kurilin <andr.kurilin@gmail.com>
This commit is contained in:
@@ -54,7 +54,12 @@ echo "Allowed to introduce missing lines : ${ALLOWED_EXTRA_MISSING}"
|
||||
echo "Missing lines in master : ${baseline_missing}"
|
||||
echo "Missing lines in proposed change : ${current_missing}"
|
||||
|
||||
if [ $allowed_missing -gt $current_missing ];
|
||||
# Support a way to allow violation
|
||||
if git log -1 --pretty=format:%B | grep -q "PRAGMA: NO COVER"
|
||||
then
|
||||
echo "PRAGMA: NO COVER found in latest commit message. Skipping coverage threshold check."
|
||||
exit_code=0
|
||||
elif [ $allowed_missing -gt $current_missing ];
|
||||
then
|
||||
if [ $baseline_missing -lt $current_missing ];
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user