Skip to content

Commit

Permalink
Trying to solve newline issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jul 23, 2024
1 parent 190481b commit 33922d9
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,15 +30,16 @@ test() {
sleep 5
done

DOCKER_OUTPUT=`docker run --rm -v ./test/suites:/test -t localhost:5000/metacall/builder_output sh -c "metacallcli test/$1" | xargs`
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}" | xargs`
EXPECTED_OUTPUT=`echo "$2" | xargs`

if [ "${DOCKER_OUTPUT}" = "${EXPECTED_OUTPUT}" ]; then
echo "Test passed: $1"
else
echo "Failed to run test: $1"
echo "Expected output was: ${EXPECTED_OUTPUT}"
echo "Test output was: ${DOCKER_OUTPUT}"
echo "Expected output was: '${EXPECTED_OUTPUT}'"
echo "Test output was: '${DOCKER_OUTPUT}'"
exit 1
fi

Expand Down

0 comments on commit 33922d9

Please sign in to comment.