From 7991a1e7aba030da9d8d6038f179f7c6aaee080f Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Sun, 12 Jun 2011 21:21:20 +1000 Subject: make subunit shell functions output time at each point. Also tested that it works with subunit2junit. --- shell/share/subunit.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'shell/share') diff --git a/shell/share/subunit.sh b/shell/share/subunit.sh index 8273727..8ddedc7 100644 --- a/shell/share/subunit.sh +++ b/shell/share/subunit.sh @@ -16,12 +16,14 @@ subunit_start_test () { # emit the current protocol start-marker for test $1 + echo "time: `date -u '+%Y-%m-%d %H:%M:%S'`" echo "test: $1" } subunit_pass_test () { # emit the current protocol test passed marker for test $1 + echo "time: `date -u '+%Y-%m-%d %H:%M:%S'`" echo "success: $1" } @@ -31,6 +33,7 @@ subunit_fail_test () { # the error text. # we use stdin because the failure message can be arbitrarily long, and this # makes it convenient to write in scripts (using <