Skip to content

Commit

Permalink
use eval to run test command
Browse files Browse the repository at this point in the history
  • Loading branch information
wildone authored May 11, 2020
1 parent 2b91210 commit 980971a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/github/github_container_verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ echo ">>> VERIFY BUILD CONTAINER <<<"
DIR=$(mktemp -d)
echo "TEST_COMMAND:${TEST_COMMAND}"
echo "TEST:docker run --env TEST_COMMAND ${IMAGE}:${IMAGE_VERSION} bash -c 'echo \$(\${TEST_COMMAND} 2>&1) | grep -q -e ${TEST_COMMAND_VERIFY} && echo true || echo false'"
export CONTAINER_OUTPUT=$(docker run --env TEST_COMMAND ${IMAGE}:${IMAGE_VERSION} bash -c "echo \$(\${TEST_COMMAND} 2>&1) | grep -q -e \"${TEST_COMMAND_VERIFY}\" && echo true || echo false")
export CONTAINER_OUTPUT=$(docker run --env TEST_COMMAND ${IMAGE}:${IMAGE_VERSION} bash -c "eval \${TEST_COMMAND} 2>&1 | grep -q -e \"${TEST_COMMAND_VERIFY}\" && echo true || echo false")
echo ::set-env name=CONTAINER_OUTPUT::$CONTAINER_OUTPUT
echo ::set-output name=CONTAINER_OUTPUT::$CONTAINER_OUTPUT
echo "CONTAINER_OUTPUT:${CONTAINER_OUTPUT}"
Expand Down

0 comments on commit 980971a

Please sign in to comment.