Skip to content

Commit

Permalink
tests/run-test.sh: Use the same quoting style everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
swick committed Feb 17, 2025
1 parent 5e85475 commit 09d96ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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"

Expand Down

0 comments on commit 09d96ba

Please sign in to comment.