Skip to content

Commit 5fbdfe0

Browse files
committed
Refactor ${LCOV_PATH}/lcov
1 parent 4630941 commit 5fbdfe0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

cleancov

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77

88
source envcov.sh
99

10-
"${LCOV_PATH}/lcov" --zerocounters -d "${OBJ_DIR}"
10+
"${LCOV}" --zerocounters -d "${OBJ_DIR}"

envcov.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ source env.sh
1010
LCOV_INFO=Coverage.info
1111

1212
LCOV_PATH=${SRCROOT}/XcodeCoverage/lcov-1.10/bin
13+
LCOV=${LCOV_PATH}/lcov
1314
OBJ_DIR=${OBJECT_FILE_DIR_normal}/${CURRENT_ARCH}

getcov

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ enter_lcov_dir()
2525

2626
gather_coverage()
2727
{
28-
"${LCOV_PATH}/lcov" --capture -b "${SRCROOT}" -d "${OBJ_DIR}" -o ${LCOV_INFO}
28+
"${LCOV}" --capture -b "${SRCROOT}" -d "${OBJ_DIR}" -o ${LCOV_INFO}
2929
}
3030

3131
exclude_data()
3232
{
33-
"${LCOV_PATH}/lcov" --remove ${LCOV_INFO} "/Applications/Xcode.app/*" -d "${OBJ_DIR}" -o ${LCOV_INFO}
34-
"${LCOV_PATH}/lcov" --remove ${LCOV_INFO} "main.m" -d "${OBJ_DIR}" -o ${LCOV_INFO}
33+
"${LCOV}" --remove ${LCOV_INFO} "/Applications/Xcode.app/*" -d "${OBJ_DIR}" -o ${LCOV_INFO}
34+
"${LCOV}" --remove ${LCOV_INFO} "main.m" -d "${OBJ_DIR}" -o ${LCOV_INFO}
3535
# Remove other patterns here...
3636
}
3737

0 commit comments

Comments
 (0)