# This function uses bt_run_in_py_env(), therefore such tests can import
# the testing Python modules (in `tests/utils/python`) and the `bt2`
# Python package.
-run_python_bt2_test() {
+bt_run_py_test() {
local -r test_dir=$1
local -r test_pattern=${2:-*}
local python_exec
# Generates a CTF trace into the directory `$2` from the moultipart
# document `$1` using `mctf.py`.
-gen_mctf_trace() {
+bt_gen_mctf_trace() {
local -r input_file=$1
local -r base_dir=$2
local -r cmd=(