diff options
| author | Stewart Smith <stewart@flamingspork.com> | 2011-06-12 21:21:20 +1000 |
|---|---|---|
| committer | Stewart Smith <stewart@flamingspork.com> | 2011-06-12 21:21:20 +1000 |
| commit | 7991a1e7aba030da9d8d6038f179f7c6aaee080f (patch) | |
| tree | e313cd503448fac2bf6331569e2e13561b2c4987 /shell/share | |
| parent | dc1985ebe6751f309abd605a14c3fddb0b2600b9 (diff) | |
| download | subunit-git-7991a1e7aba030da9d8d6038f179f7c6aaee080f.tar.gz | |
make subunit shell functions output time at each point. Also tested that it works with subunit2junit.
Diffstat (limited to 'shell/share')
| -rw-r--r-- | shell/share/subunit.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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 <<END syntax. + echo "time: `date -u '+%Y-%m-%d %H:%M:%S'`" 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:%S'`" 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:%S'`" echo "skip: $1" } |
