X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Futils%2Futils.sh;h=aa7353b7781846c708b4b5c2d9a3037dd3af72cf;hb=04c029a266e22c50c3d84f586d643abd1dd2b5b1;hp=1d49b05a6ba2060488e044a764848ffea69338cd;hpb=163f39d1a8ff2505c4349f1834dc289158daee54;p=babeltrace.git diff --git a/tests/utils/utils.sh b/tests/utils/utils.sh index 1d49b05a..aa7353b7 100644 --- a/tests/utils/utils.sh +++ b/tests/utils/utils.sh @@ -457,16 +457,8 @@ run_python_bt2() { # the testing Python modules (in `tests/utils/python`) and the `bt2` # Python package. run_python_bt2_test() { - local test_dir="$1" - local test_pattern="${2:-'*'}" - - local ret - local test_runner_args=() - - test_runner_args+=("$test_dir") - if [ -n "${test_pattern}" ]; then - test_runner_args+=("${test_pattern}") - fi + local -r test_dir="$1" + local -r test_pattern="${2:-'*'}" if test "${BT_TESTS_COVERAGE:-}" = "1"; then python_exec="check_coverage" @@ -480,7 +472,7 @@ run_python_bt2_test() { --pattern "$test_pattern" \ "$test_dir" \ - ret=$? + local -r ret=$? if test "${BT_TESTS_COVERAGE_REPORT:-}" = "1"; then coverage report -m