From 09d96ba05c6522d953c7bcc83934a948b488cf65 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Mon, 17 Feb 2025 12:45:49 +0100 Subject: [PATCH] tests/run-test.sh: Use the same quoting style everywhere --- tests/run-test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run-test.sh b/tests/run-test.sh index 8559aa7a2..0e1a7624c 100755 --- a/tests/run-test.sh +++ b/tests/run-test.sh @@ -19,7 +19,7 @@ set -euo pipefail function fail() { - sed -n '/^#$/,/^$/p' "${BASH_SOURCE[0]}" + sed -n "/^#$/,/^$/p" "${BASH_SOURCE[0]}" echo "$1" exit 1 } @@ -28,7 +28,7 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) PYTEST=$(command -v "pytest-3" || command -v "pytest") || fail "pytest is missing" -BUILDDIR=${BUILDDIR:-$(find "${SCRIPT_DIR}/.." -maxdepth 2 -name 'build.ninja' -printf "%h\n" -quit)} +BUILDDIR=${BUILDDIR:-$(find "${SCRIPT_DIR}/.." -maxdepth 2 -name "build.ninja" -printf "%h\n" -quit)} [ ! -f "${BUILDDIR}/build.ninja" ] && fail "Path '${BUILDDIR}' does not appear to be a build dir"