~ubuntu-branches/debian/sid/subunit/sid

« back to all changes in this revision

Viewing changes to shell/share/subunit.sh

  • Committer: Package Import Robot
  • Author(s): Jelmer Vernooij
  • Date: 2012-04-08 21:44:01 UTC
  • mfrom: (1.1.7)
  • Revision ID: package-import@ubuntu.com-20120408214401-7uyuh0zhx7lvpp7j
Tags: 0.0.7+bzr162-1
* New upstream snapshot.
 + Fixes compatibility with current versions of testtools. Closes: #669491
* Support installation for multiple python versions.
* Include egg-info for python-subunit. LP: #893620
* Add python3-subunit package.
* Bump standards version to 3.9.3 (no changes).
* Use machine parseable format for copyright file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
subunit_start_test () {
18
18
  # emit the current protocol start-marker for test $1
 
19
  echo "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
19
20
  echo "test: $1"
20
21
}
21
22
 
22
23
 
23
24
subunit_pass_test () {
24
25
  # emit the current protocol test passed marker for test $1
 
26
  echo "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
25
27
  echo "success: $1"
26
28
}
27
29
 
31
33
  # the error text.
32
34
  # we use stdin because the failure message can be arbitrarily long, and this
33
35
  # makes it convenient to write in scripts (using <<END syntax.
 
36
  echo "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
34
37
  echo "failure: $1 ["
35
38
  cat -
36
39
  echo "]"
42
45
  # the error text.
43
46
  # we use stdin because the failure message can be arbitrarily long, and this
44
47
  # makes it convenient to write in scripts (using <<END syntax.
 
48
  echo "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
45
49
  echo "error: $1 ["
46
50
  cat -
47
51
  echo "]"
50
54
 
51
55
subunit_skip_test () {
52
56
  # emit the current protocol test skipped marker for test $1
 
57
  echo "time: `date -u '+%Y-%m-%d %H:%M:%SZ'`"
53
58
  echo "skip: $1"
54
59
}
55
60