mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Clean up unit test logs on success.
* Add a little bit of shell variable safety and tweak output.
This commit is contained in:
committed by
Tom Ritchford
parent
803f5b5613
commit
7f1a95550f
@@ -40,10 +40,11 @@ scons "${@}" || exit 1 && \
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
echo -e "\n\n\nTesting ${RIPPLED}\n\n\n"
|
echo -e "\n\n\nTesting ${RIPPLED}\n\n\n"
|
||||||
LOG=unittest.${RUN}.log
|
LOG="unittest.${RUN}.log"
|
||||||
${RIPPLED} --unittest | tee ${LOG} && \
|
"${RIPPLED}" --unittest | tee "${LOG}" && \
|
||||||
grep -q "0 failures" ${LOG} && \
|
grep -q "0 failures" "${LOG}" && \
|
||||||
npm test --rippled=${RIPPLED} \
|
rm -v "${LOG}" && \
|
||||||
|
npm test --rippled="${RIPPLED}" \
|
||||||
|| break
|
|| break
|
||||||
success="${success} ${RUN}"
|
success="${success} ${RUN}"
|
||||||
RUN=
|
RUN=
|
||||||
@@ -51,10 +52,10 @@ scons "${@}" || exit 1 && \
|
|||||||
|
|
||||||
if [ -n "${success}" ]
|
if [ -n "${success}" ]
|
||||||
then
|
then
|
||||||
echo "Success on ${success}"
|
echo -e "\nSuccess on ${success}"
|
||||||
fi
|
fi
|
||||||
if [ -n "${RUN}" ]
|
if [ -n "${RUN}" ]
|
||||||
then
|
then
|
||||||
echo "Failed on ${RUN}"
|
echo -e "\nFailed on ${RUN}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user