From 62e666c2edc888a1fbf53320f728d7e4fdce4946 Mon Sep 17 00:00:00 2001 From: Gus Smith Date: Sat, 29 Nov 2025 16:08:42 -0800 Subject: [PATCH] Make run-test work from anywhere --- tests/functional/run-test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/functional/run-test.sh b/tests/functional/run-test.sh index 9f70462ee..e0bedf8d4 100755 --- a/tests/functional/run-test.sh +++ b/tests/functional/run-test.sh @@ -1,2 +1,5 @@ #!/usr/bin/env bash -pytest -v -m "not smt and not rkt" "$@" + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) + +pytest -v -m "not smt and not rkt" "$SCRIPT_DIR" "$@"