From: Philippe Proulx Date: Fri, 10 Nov 2023 04:30:06 +0000 (-0500) Subject: tests/utils/utils.sh: check_coverage() -> _bt_tests_check_coverage() X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=4958be54ec3f4540cb3328f1e735e95de2b8d525 tests/utils/utils.sh: check_coverage() -> _bt_tests_check_coverage() Make this function "private" (by name) as it's not intended that whatever sources `utils.sh` use it directly (run_python_bt2_test() uses it if `BT_TESTS_COVERAGE` is `1`). Signed-off-by: Philippe Proulx Change-Id: I6e75945eae067c08d6c8f2a3711b4c177608c3d1 --- diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 3b2ee888..bd077983 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -374,7 +374,7 @@ if [[ ${SH_TAP:-} == 1 ]]; then fi # Forwards the arguments to `coverage run`. -check_coverage() { +_bt_tests_check_coverage() { coverage run "$@" } @@ -457,7 +457,7 @@ run_python_bt2_test() { local python_exec if test "${BT_TESTS_COVERAGE:-}" = "1"; then - python_exec="check_coverage" + python_exec="_bt_tests_check_coverage" else python_exec="${BT_TESTS_PYTHON_BIN}" fi