Improved run-api-tests.sh script to make it compatible with sh

This commit is contained in:
Alejandro Celaya
2022-08-27 09:36:37 +02:00
parent df70810aa6
commit bfbeb7b1fb
5 changed files with 25 additions and 22 deletions

View File

@@ -5,9 +5,4 @@ if ! [[ $(docker ps | grep shlink) ]]; then
docker-compose up -d
fi
if [[ "$*" == *"test:api:rr"* ]]; then
# API tests should be run inside the RoadRunner container when the test runtime is RoadRunner
docker exec -it shlink_roadrunner /bin/sh -c "$*"
else
docker exec -it shlink_swoole /bin/sh -c "$*"
fi
docker exec -it shlink_swoole /bin/sh -c "$*"