mirror of https://github.com/google/oss-fuzz.git
[infra] Fix RegEx in bad_build_check as "coverage" builds do not have counters, only guards.
This commit is contained in:
parent
36beab3322
commit
4d4f867b54
|
@ -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."
|
||||
|
|
Loading…
Reference in New Issue