tests/utils/utils.sh: check_coverage() -> _bt_tests_check_coverage()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 10 Nov 2023 04:30:06 +0000 (23:30 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 7 Feb 2024 21:25:56 +0000 (16:25 -0500)
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 <eeppeliteloop@gmail.com>
Change-Id: I6e75945eae067c08d6c8f2a3711b4c177608c3d1

tests/utils/utils.sh

index 3b2ee8886877f55f0429ad20dc541311da074166..bd077983cef48eb80a4482de5864478cce024591 100644 (file)
@@ -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
This page took 0.026381 seconds and 4 git commands to generate.