From ae849fcee03cfe11fc3b0e854ba0b2166a02e044 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Mon, 15 Apr 2024 00:07:58 +0200 Subject: tests: fix dir agnostism --- tests/run-tests.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/run-tests.sh') diff --git a/tests/run-tests.sh b/tests/run-tests.sh index f676a96..26843f2 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -3,10 +3,12 @@ function cleanup { echo + popd >/dev/null echo Shutting down container ... sudo nixos-container stop hermes } +pushd $(dirname $0) >/dev/null echo Stopping container for update ... sudo nixos-container stop hermes || exit 2 echo Updating container ... @@ -66,7 +68,7 @@ echo Done. echo echo Checking custom RSS bridges : -BRIDGES="$(ls config/services/web/rss/*Bridge.php | xargs basename -s Bridge.php)" +BRIDGES="$(ls ../config/services/web/rss/*Bridge.php | xargs basename -s Bridge.php)" for BRIDGE in $BRIDGES do echo Checking bridge $BRIDGE ... @@ -80,7 +82,7 @@ echo Done. echo echo Checking web keys directory : -KEYS="$(ls config/services/web/webkeydirectory/hu)" +KEYS="$(ls ../config/services/web/webkeydirectory/hu)" for KEY in $KEYS do echo Checking key $KEY ... -- cgit v1.2.3