From d9ffa53e253f71707401462205199a52f6c83890 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Mon, 11 Apr 2016 04:31:15 +0000 Subject: [PATCH] debug --- urchin | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/urchin b/urchin index f6a4cb7..bc256cd 100755 --- a/urchin +++ b/urchin @@ -716,27 +716,27 @@ wantto run urchin on that directory.' >&2 echo >> "${urchin_tmp}"/head start=$("${epoch}") - return_code=$( - echo "${test_seeds}" | while read -r seed; do - catch recurse "${root}" "$(fullpath "${seed}")" - test "${return_code}" -eq 0 || break - done|tail -n1 - ) + while read -r seed; do + return_code=$(catch recurse "${root}" "$(fullpath "${seed}")") + if test "${return_code}" -eq 0; then break; fi + done<&2 -# return_code=2 -# fi -# fi + if test "${return_code}" -le 1; then + if test -f "${urchin_tmp}"/log ; then + echo Print output. + # cat "${urchin_tmp}"/head + # report_outcome "${root}" "${format}" "${urchin_tmp}"/log "${start}" \ + # "${finish}" + # cat "${urchin_tmp}"/foot + else + echo 'No tests found' >&2 + return_code=2 + fi + fi rm -Rf "${urchin_tmp}" exit "${return_code}"