diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2024-04-15 00:07:58 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2024-04-15 00:07:58 +0200 |
| commit | ae849fcee03cfe11fc3b0e854ba0b2166a02e044 (patch) | |
| tree | f4746d85eda7604f82ae26654e447172db1221b2 /tests/run-tests.sh | |
| parent | bb3a7d22c3bf0feab85cb59319592e4a294b0fe6 (diff) | |
tests: fix dir agnostism
Diffstat (limited to 'tests/run-tests.sh')
| -rwxr-xr-x | tests/run-tests.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 ... |
