[infra] Fix RegEx in bad_build_check as "coverage" builds do not have counters, only guards.

This commit is contained in:
Max Moroz 2018-04-20 09:54:54 -07:00
parent 36beab3322
commit 4d4f867b54
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ function check_instrumentation {
return 1
fi
local NUMBER_OF_EDGES=$(grep -Po "INFO: Loaded [[:digit:]]+ module.*\(.*counters\):[[:space:]]+\K[[:digit:]]+" $FUZZER_OUTPUT)
local NUMBER_OF_EDGES=$(grep -Po "INFO: Loaded [[:digit:]]+ module.*\(.*counters|guards\):[[:space:]]+\K[[:digit:]]+" $FUZZER_OUTPUT)
if (( $NUMBER_OF_EDGES < $THRESHOLD_FOR_NUMBER_OF_EDGES )); then
echo "BAD BUILD: the target seems to have only partial coverage instrumentation."