X-Git-Url: https://git.ladys.computer/CGirls/blobdiff_plain/091679702255610d868b06af26ffa0ba5a6bf6d7..f6f2fd79a596ecedaadd8b605b7de9d8c662151c:/sh/test.sh diff --git a/sh/test.sh b/sh/test.sh index fc0935b..1d9b5e2 100755 --- a/sh/test.sh +++ b/sh/test.sh @@ -80,9 +80,9 @@ do : else : printf '%27b \n' '\0033[1;93;41;m[NG]\0033[0m' printf '\033[7m \033[0m \033[2m%b\033[0m \n' 'Result did not match expectation.' 'Got:' - printf '\033[30;107m%-49s\033[0m\n' "${TEST_RESULT}" + printf '%s\n' "${TEST_RESULT}" | sed 's/'"'"'/'"'"'"'"'"'"'"'"'/g;s/^/'"'"'/;s/$/'"'"'/' | xargs -E '' printf '\033[30;107m%-49s\033[0m\n' printf '\033[7m \033[0m \033[2m%b\033[0m \n' 'Expected:' - printf '\033[30;107m%-49s\033[0m\n' "${TEST_EXPECTATION}" + printf '%s\n' "${TEST_EXPECTATION}" | sed 's/'"'"'/'"'"'"'"'"'"'"'"'/g;s/^/'"'"'/;s/$/'"'"'/' | xargs -E '' printf '\033[30;107m%-49s\033[0m\n' TEST_EXIT_STATUS=$((${TEST_EXIT_STATUS} | 1)) fi fi