Fix: tests: use run_python in gen_mctf_trace
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 30 Oct 2023 15:30:29 +0000 (11:30 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 31 Oct 2023 16:54:08 +0000 (12:54 -0400)
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 <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11171
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
CI-Build: Michael Jeanson <mjeanson@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
tests/utils/utils.sh

index 937b97e9ef31b108ececc94ee6a6442e864aed5c..da389f38b34068253113faa3b1f24ba83b97c9ca 100644 (file)
@@ -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}"
 }
This page took 0.024936 seconds and 4 git commands to generate.