From 7f1a95550fac5d67f9a4cef4d11913e4ffa68662 Mon Sep 17 00:00:00 2001 From: Edward Hennis Date: Fri, 13 Mar 2015 15:12:18 -0400 Subject: [PATCH] Clean up unit test logs on success. * Add a little bit of shell variable safety and tweak output. --- Builds/test-only.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Builds/test-only.sh b/Builds/test-only.sh index 3b716cf91c..626697ef49 100755 --- a/Builds/test-only.sh +++ b/Builds/test-only.sh @@ -40,21 +40,22 @@ scons "${@}" || exit 1 && \ continue fi echo -e "\n\n\nTesting ${RIPPLED}\n\n\n" - LOG=unittest.${RUN}.log - ${RIPPLED} --unittest | tee ${LOG} && \ - grep -q "0 failures" ${LOG} && \ - npm test --rippled=${RIPPLED} \ - || break + LOG="unittest.${RUN}.log" + "${RIPPLED}" --unittest | tee "${LOG}" && \ + grep -q "0 failures" "${LOG}" && \ + rm -v "${LOG}" && \ + npm test --rippled="${RIPPLED}" \ + || break success="${success} ${RUN}" RUN= done if [ -n "${success}" ] then - echo "Success on ${success}" + echo -e "\nSuccess on ${success}" fi if [ -n "${RUN}" ] then - echo "Failed on ${RUN}" + echo -e "\nFailed on ${RUN}" exit 1 fi