From d86cd8e2932e244032ffe3e34c1b4e4ec95e1f56 Mon Sep 17 00:00:00 2001 From: Andrew Kesterson Date: Wed, 19 Dec 2012 23:06:39 -0500 Subject: [PATCH] fixed tunit to reset all counters when tunit_header is called, like junit.{ --- lib/tunit.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/tunit.sh b/lib/tunit.sh index 5699f12..0cb6843 100644 --- a/lib/tunit.sh +++ b/lib/tunit.sh @@ -36,6 +36,11 @@ function tunit_header() EOF return 1 fi + TUNIT_FAILURES=0 + TUNIT_ERRORS=0 + TUNIT_TESTS=0 + TUNIT_TIMERSTART=$(date "+%s") + return 0 } function tunit_footer()