Skip to content

Commit

Permalink
Solve issues again.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jul 23, 2024
1 parent 8997e99 commit fd039a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ test() {
sleep 5
done

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'`
DOCKER_OUTPUT=`docker run --rm -v ./test/suites:/test -t localhost:5000/metacall/builder_output sh -c "metacallcli test/$1" | tr -d '\n'`

if [ ! "${DOCKER_OUTPUT}" = "$2" ]; then
if [ "${DOCKER_OUTPUT}" = "$2" ]; then
echo "Test passed: $1"
else
echo "Failed to run test: $1"
echo "Expected output was: $2"
echo "Test output was: ${DOCKER_OUTPUT}"
Expand Down

0 comments on commit fd039a7

Please sign in to comment.