Update to newer version of subunit.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 13 Oct 2011 17:03:26 +0000 (19:03 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 13 Oct 2011 18:37:18 +0000 (20:37 +0200)
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Oct 13 20:37:18 CEST 2011 on sn-devel-104

lib/subunit/NEWS
lib/subunit/perl/lib/Subunit.pm
lib/subunit/shell/share/subunit.sh

index f91b11a00ef1146399cf20a590280e77e99d13a6..2edf7369d9b7d53d32f1d430c32b80ac04664599 100644 (file)
@@ -26,9 +26,13 @@ IMPROVEMENTS
 * Force flush of writes to stdout in c/tests/test_child.
   (Jelmer Vernooij, #687611)
 
+* Perl module now correctly outputs "failure" instead of "fail".  (Stewart Smith)
+
 * Provisional Python 3.x support.
   (Robert Collins, Tres Seaver, Martin[gz], #666819)
 
+* Shell functions now output timestamps. (Stewart Smith)
+
 * ``subunit.chunked.Decoder`` Python class takes a new ``strict`` option,
   which defaults to ``True``. When ``False``, the ``Decoder`` will accept
   incorrect input that is still unambiguous. i.e. subunit will not barf if
index dac4a2601df48683c552458be8fc828c807ef125..72aa1ebd662217792d8bedae8506c09db89bf329 100644 (file)
@@ -135,7 +135,7 @@ sub fail_test($;$)
 {
        my $name = shift;
        my $reason = shift;
-       end_test($name, "fail", $reason);
+       end_test($name, "failure", $reason);
 }
 
 sub success_test($;$)
index 82737276b817d27fe0decc04d27929eb6da3c838..a5323882520957a61f974e800ab8a12b016446bd 100644 (file)
 
 subunit_start_test () {
   # emit the current protocol start-marker for test $1
+  echo "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
   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:%SZ'`"
   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 <<END syntax.
+  echo "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
   echo "failure: $1 ["
   cat -
   echo "]"
@@ -42,6 +45,7 @@ subunit_error_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 <<END syntax.
+  echo "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
   echo "error: $1 ["
   cat -
   echo "]"
@@ -50,6 +54,7 @@ subunit_error_test () {
 
 subunit_skip_test () {
   # emit the current protocol test skipped marker for test $1
+  echo "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
   echo "skip: $1"
 }