diff --git a/scripts/travis/container_verify.sh b/scripts/travis/container_verify.sh index 0e00776..12f038b 100755 --- a/scripts/travis/container_verify.sh +++ b/scripts/travis/container_verify.sh @@ -16,11 +16,11 @@ DIR=$(mktemp -d) echo "TEST_COMMAND:${TEST_COMMAND}" echo "TEST:docker run --env TEST_COMMAND ${IMAGE}:${IMAGE_VERSION} bash -c '\$(\${TEST_COMMAND})'" export CONTAINER_OUTPUT=$(docker run --env TEST_COMMAND ${IMAGE}:${IMAGE_VERSION} bash -c "\$(\${TEST_COMMAND})") -echo "CONTAINER_OUTPUT=${CONTAINER_OUTPUT}" +echo "CONTAINER_OUTPUT:${CONTAINER_OUTPUT}" -if [[ ! ${CONTAINER_OUTPUT} =~ ${TEST_COMMAND_VERIFY} ]]; then +if [[ "${CONTAINER_OUTPUT}" != *"${TEST_COMMAND_VERIFY}"* ]]; then echo ">>> TEST FAILED <<<" echo "Expected: ${TEST_COMMAND_VERIFY}" echo "Got: ${CONTAINER_OUTPUT}" - travis_terminate 1; + travis_terminate 1 fi