summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author William Escande <wescande@google.com> 2024-08-27 14:36:24 -0700
committer William Escande <wescande@google.com> 2024-08-27 14:47:51 -0700
commit9ee77103742b8e7fff7fc06c38687700b97d85f7 (patch)
tree1e8d5312f2b478069fe6506c1dab6fd029858738
parented20bdbafe6038d364cd4ae218dba99df6846053 (diff)
Fix generate coverage script
Bug: 311772251 Test: m . Test: ./service/generate_local_coverage.sh Flag: Exempt coverage tool Change-Id: I303850408c1582e2516c70824753be696631ba25
-rwxr-xr-xservice/generate_local_coverage.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/service/generate_local_coverage.sh b/service/generate_local_coverage.sh
index b60a8463b2..3a4afa8489 100755
--- a/service/generate_local_coverage.sh
+++ b/service/generate_local_coverage.sh
@@ -23,8 +23,10 @@ unzip "${ANDROID_HOST_OUT}"/testcases/ServiceBluetoothRoboTests/ServiceBluetooth
# shellcheck disable=SC2046
rm -rf $(find ${COVERAGE_TMP_FOLDER}/ServiceBluetoothRobo_unzip -iname "*test*")
# shellcheck disable=SC2016
-rm ${COVERAGE_TMP_FOLDER}/ServiceBluetoothRobo_unzip/com/android/server/bluetooth/'BluetoothAdapterState$waitForState$3$invokeSuspend$$inlined$filter$1.class'
-rm ${COVERAGE_TMP_FOLDER}/ServiceBluetoothRobo_unzip/com/android/server/bluetooth/R.class
+rm -rf ${COVERAGE_TMP_FOLDER}/ServiceBluetoothRobo_unzip/com/android/server/bluetooth/'BluetoothAdapterState$waitForState$3$invokeSuspend$$inlined$filter$1.class'
+# shellcheck disable=SC2016
+rm -rf ${COVERAGE_TMP_FOLDER}/ServiceBluetoothRobo_unzip/com/android/server/bluetooth/'BluetoothAdapterState$waitForState$3$invokeSuspend$$inlined$filter$1$2.class'
+rm -rf ${COVERAGE_TMP_FOLDER}/ServiceBluetoothRobo_unzip/com/android/server/bluetooth/R.class
# Generate report:
# You may want to run "m jacoco-cli" if above command failed