From: Philippe Proulx Date: Fri, 10 Nov 2023 04:41:04 +0000 (-0500) Subject: tests/utils/utils.sh: run_python_bt2_test(): make `python_exec` var. local X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=commitdiff_plain;h=7c577b1d19a6b2b4338cef4d9eaf72dc3ac14abc tests/utils/utils.sh: run_python_bt2_test(): make `python_exec` var. local Signed-off-by: Philippe Proulx Change-Id: I05f7600cd60ba849ab20617d6354ddf07db4afa0 --- diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index aa7353b7..8320b189 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -460,6 +460,8 @@ run_python_bt2_test() { local -r test_dir="$1" local -r test_pattern="${2:-'*'}" + local python_exec + if test "${BT_TESTS_COVERAGE:-}" = "1"; then python_exec="check_coverage" else