tests: fix shellcheck issues in run_tests_valgrind.sh

This fixes instances of:

https://shellcheck.net/wiki/SC2086 (info): Double quote to prevent globbing and word splitting.
https://shellcheck.net/wiki/SC2034 (warning): BASEDIR appears unused.

Signed-off-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Michael Adam
2025-02-13 15:29:44 +01:00
parent 0712ec33ad
commit f1347866a0

View File

@@ -18,11 +18,10 @@
# this program; if not, see <http://www.gnu.org/licenses/>.
SCRIPTS_DIR=$(dirname $0)
BASEDIR=$SCRIPTS_DIR/../..
SCRIPTS_DIR=$(dirname "$0")
TESTS_DIR=$SCRIPTS_DIR/..
TESTENV_DIR=$TESTS_DIR/env
LOG_DIR=$TESTENV_DIR/var/log
VALGRIND="valgrind --track-origins=yes --show-leak-kinds=all --tool=memcheck --leak-check=full --log-file=$LOG_DIR/valgrind.log" $SCRIPTS_DIR/run_tests.sh
VALGRIND="valgrind --track-origins=yes --show-leak-kinds=all --tool=memcheck --leak-check=full --log-file=$LOG_DIR/valgrind.log" "$SCRIPTS_DIR"/run_tests.sh