Skip to content

Commit

Permalink
use simple check
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone committed Oct 10, 2019
1 parent 4c9b0d3 commit b4a10a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/travis/container_verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b4a10a5

Please sign in to comment.