From ec48dce5240d32024e33d519de41eaf5fc7a5a31 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 30 Oct 2023 11:30:29 -0400 Subject: [PATCH] Fix: tests: use run_python in gen_mctf_trace gen_mctf_trace calls the python3 interpreter, without using the `run_python` wrapper. PYTHONPATH is therefore not set appropriately for Python to find our local `typing.py` module, if needed. Add a call to `run_python` to fix that. Change-Id: Id813169905d511e5600a70cebad681b00ebb49d8 Signed-off-by: Simon Marchi Reviewed-on: https://review.lttng.org/c/babeltrace/+/11171 Reviewed-by: Philippe Proulx CI-Build: Michael Jeanson Tested-by: jenkins --- tests/utils/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 937b97e9..da389f38 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -419,6 +419,6 @@ gen_mctf_trace() { local base_dir="$2" diag "Running: ${BT_TESTS_PYTHON_BIN} ${BT_TESTS_SRCDIR}/utils/python/mctf.py --base-dir ${base_dir} ${input_file}" - "${BT_TESTS_PYTHON_BIN}" "${BT_TESTS_SRCDIR}/utils/python/mctf.py" \ + run_python "${BT_TESTS_PYTHON_BIN}" "${BT_TESTS_SRCDIR}/utils/python/mctf.py" \ --base-dir "${base_dir}" "${input_file}" } -- 2.34.1