tests: fix some include guards
[babeltrace.git] / tests / utils / run-in-py-env.sh
index 84788c56943e4b70622195e1021168b143018288..c5266542cf4bdfe27feec3989f8579e8fae50789 100755 (executable)
@@ -6,13 +6,13 @@
 # Copyright (C) 2019 Simon Marchi <simon.marchi@efficios.com>
 
 if [[ -n ${BT_TESTS_SRCDIR:-} ]]; then
-       UTILSSH=$BT_TESTS_SRCDIR/utils/utils.sh
+       utils_sh=$BT_TESTS_SRCDIR/utils/utils.sh
 else
-       UTILSSH=$(dirname "$0")/../utils/utils.sh
+       utils_sh=$(dirname "$0")/../utils/utils.sh
 fi
 
 # shellcheck source=../utils/utils.sh
-source "$UTILSSH"
+source "$utils_sh"
 
 usage() {
        echo "Usage: run-in-py-utils-bt2-env.sh COMMAND [ARGS]..."
@@ -30,7 +30,7 @@ if (($# == 0)); then
        exit 1
 fi
 
-# Sanity check that the BT_TESTS_BUILDDIR value makes sense.
+# Make sure the value of `BT_TESTS_BUILDDIR` makes sense
 if [[ ! -f $BT_TESTS_BUILDDIR/Makefile ]]; then
        {
                echo "ERROR: Invalid \`BT_TESTS_BUILDDIR\` variable (\`\$BT_TESTS_BUILDDIR/Makefile\`"
@@ -43,4 +43,4 @@ if [[ ! -f $BT_TESTS_BUILDDIR/Makefile ]]; then
        exit 1
 fi
 
-bt_run_in_py_env "${@}"
+bt_run_in_py_env "$@"
This page took 0.024576 seconds and 4 git commands to generate.