summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorStewart Smith <stewart@flamingspork.com>2011-06-16 17:47:53 +1000
committerStewart Smith <stewart@flamingspork.com>2011-06-16 17:47:53 +1000
commit51f9187e0aa3138d82e61bb892ddc37edae18a84 (patch)
treead3fd123993e57503c4438665c01888fe4adc14d /shell
parent3fa1adf9c4dccdaa43a990dcf36c0cf6d003648a (diff)
downloadsubunit-51f9187e0aa3138d82e61bb892ddc37edae18a84.tar.gz
in subunit.sh add Z to end of time to indicate UTC
Diffstat (limited to 'shell')
-rw-r--r--shell/share/subunit.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/shell/share/subunit.sh b/shell/share/subunit.sh
index 8ddedc7..a532388 100644
--- a/shell/share/subunit.sh
+++ b/shell/share/subunit.sh
@@ -16,14 +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 "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:%S'`"
+ echo "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
echo "success: $1"
}
@@ -33,7 +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 "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
echo "failure: $1 ["
cat -
echo "]"
@@ -45,7 +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 "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
echo "error: $1 ["
cat -
echo "]"
@@ -54,7 +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 "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
echo "skip: $1"
}