CC: Filter out coverage data in lib/ext
Files under tf-m/lib/ext folder are fully or partially imported from 3rd
party projects. There is no need to calculate coverage data for this
imported codes.
Signed-off-by: Xinyu Zhang <xinyu.zhang@arm.com>
Change-Id: I6ef523cf60c68c2e4b5d4a484ec2b9247bd5c619
diff --git a/lava_helper/codecov_helper.py b/lava_helper/codecov_helper.py
index 251c846..8e218ee 100644
--- a/lava_helper/codecov_helper.py
+++ b/lava_helper/codecov_helper.py
@@ -56,6 +56,6 @@
dl_artifact("tfm_ns.axf")
run("python3 $SHARE_FOLDER/qa-tools/coverage-tool/coverage-reporting/intermediate_layer.py --config-json $SHARE_FOLDER/tf-m-ci-scripts/lava_helper/trace2covjson.json --local-workspace $SHARE_FOLDER", cwd=job_dir)
run("python3 $SHARE_FOLDER/qa-tools/coverage-tool/coverage-reporting/generate_info_file.py --workspace $SHARE_FOLDER --json covjson.json", cwd=job_dir)
- run("lcov -rc lcov_branch_coverage=1 -r coverage.info '*/trusted-firmware-m/platform/*' '*/tf-m-tests/*' '*/mbedtls/*' '*/mcuboot/*' '*/psa-arch-tests/*' -o coverage.info.tmp", cwd=job_dir)
+ run("lcov -rc lcov_branch_coverage=1 -r coverage.info '*/trusted-firmware-m/platform/*' '*/trusted-firmware-m/lib/ext/*' '*/tf-m-tests/*' '*/mbedtls/*' '*/mcuboot/*' '*/psa-arch-tests/*' -o coverage.info.tmp", cwd=job_dir)
run("mv coverage.info.tmp coverage.info", cwd=job_dir)
run("genhtml --branch-coverage coverage.info --output-directory trace_report | grep -v -E '^Processing file '", cwd=job_dir)