From 7c577b1d19a6b2b4338cef4d9eaf72dc3ac14abc Mon Sep 17 00:00:00 2001 From: Philippe Proulx Date: Thu, 9 Nov 2023 23:41:04 -0500 Subject: [PATCH] tests/utils/utils.sh: run_python_bt2_test(): make `python_exec` var. local Signed-off-by: Philippe Proulx Change-Id: I05f7600cd60ba849ab20617d6354ddf07db4afa0 --- tests/utils/utils.sh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.34.1