From 4d4f867b54eda2df9f596e60a9cbdeec918641bf Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Fri, 20 Apr 2018 09:54:54 -0700 Subject: [PATCH] [infra] Fix RegEx in bad_build_check as "coverage" builds do not have counters, only guards. --- infra/base-images/base-runner/bad_build_check | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/base-images/base-runner/bad_build_check b/infra/base-images/base-runner/bad_build_check index 556a3c17b..5e83f26e4 100755 --- a/infra/base-images/base-runner/bad_build_check +++ b/infra/base-images/base-runner/bad_build_check @@ -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."