Skip to content

Commit

Permalink
validate the substitution in test_exec.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dmachi committed Jan 25, 2024
1 parent 4ce7f11 commit cce1267
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scif/tests/test_exec.sh
Expand Up @@ -6,4 +6,11 @@ echo "Testing exec of commands:"
docker run -it "${CONTAINER_NAME}" exec hello-world-echo echo "Hello World!"
docker run -it "${CONTAINER_NAME}" exec hello-world-script ls /
docker run -it "${CONTAINER_NAME}" exec hello-world-env env
docker run -it "${CONTAINER_NAME}" exec hello-world-env echo [e]OMG

OUT=$(docker run -it "${CONTAINER_NAME}" --quiet exec hello-world-env echo [e]OMG | tr -d '\n\t\r ')
if [ "$OUT" == "TACOS" ]; then
echo "Variable Substitution Success: $OUT"
else
echo "Variable subsitution for e[OMG] failed"
exit 1
fi

0 comments on commit cce1267

Please sign in to comment.