From 385832c1fdb90373a971739bd687b9a6c5cce50a Mon Sep 17 00:00:00 2001 From: mindston Date: Wed, 25 Dec 2024 17:50:49 +0100 Subject: [PATCH] Fix usage of removed $WORKSPACE variable in run-tests --- tests/run-tests | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/run-tests b/tests/run-tests index 360605ab..a790d4c7 100755 --- a/tests/run-tests +++ b/tests/run-tests @@ -8,8 +8,8 @@ echo_header() { #------------------------------------------------------------------------------# -if [ -d tests ]; then - cd tests +if [ ! -d tests ]; then + cd .. fi set -x # show each command as it is executed @@ -17,7 +17,6 @@ set -x # show each command as it is executed #------------------------------------------------------------------------------# echo_header "run commit hooks" -cd $WORKSPACE test -x ./hooks/pre-commit && ./hooks/pre-commit #------------------------------------------------------------------------------#