From 34a6276b20e7fc3b59c98bb056a9b11554e516d9 Mon Sep 17 00:00:00 2001 From: Thomas Levine <_@thomaslevine.com> Date: Sun, 10 Apr 2016 18:43:58 +0000 Subject: [PATCH] move footer --- urchin | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/urchin b/urchin index 6e0ec15..8064ec7 100755 --- a/urchin +++ b/urchin @@ -410,6 +410,14 @@ format_urchin() { fi prevpath="${path}" done + + if "${print_margins}"; then + echo + echo "Done, took ${elapsed} $(plural second ${elapsed})." + echo "${oks} $(plural test "${oks}") passed." + echo "${skips} $(plural test "${skips}") skipped." + echo "${not_oks} $(plural test "${not_oks}") failed." + fi } # -------------------- Main stuff -------------------- @@ -582,13 +590,6 @@ report_outcome() { echo "# Full test suite took ${elapsed} $(plural second ${elapsed})." echo 1.."${n}" elif test "${format}" = urchin; then - if "${print_margins}"; then - echo - echo "Done, took ${elapsed} $(plural second ${elapsed})." - echo "${oks} $(plural test "${oks}") passed." - echo "${skips} $(plural test "${skips}") skipped." - echo "${not_oks} $(plural test "${not_oks}") failed." - fi fi test "${not_oks}" -eq '0' }