Skip to content

Commit

Permalink
Trying to solve issues with tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jul 23, 2024
1 parent 0144212 commit 8997e99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ build() {

test() {
build

${DOCKER_CMD} up -d registry

while [ ! "$(docker inspect --format '{{json .State.Health.Status }}' metacall_builder_registry)" = "\"healthy\"" ]; do
sleep 5
done
DOCKER_OUTPUT=`docker run --rm -v ./test/suites:/test -t localhost:5000/metacall/builder_output sh -c "metacallcli test/$1" | tr -d '\n'`

DOCKER_OUTPUT=`docker run --rm -v ./test/suites:/test -t localhost:5000/metacall/builder_output sh -c "metacallcli test/$1"`
DOCKER_OUTPUT=`echo ${DOCKER_OUTPUT} | tr -d '\n'`

if [ ! "${DOCKER_OUTPUT}" = "$2" ]; then
echo "Failed to run test: $1"
Expand Down

0 comments on commit 8997e99

Please sign in to comment.