summaryrefslogtreecommitdiff
path: root/selftest/format-subunit
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-03-31 03:32:23 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-03-31 03:32:23 +0200
commit49d82aa7729c5bfa7dde313580630a5ff97fc05a (patch)
treedb44f351ba2069952c6542564d5cebe84cdf722f /selftest/format-subunit
parenta8ac7fda573a924debf165d39eff3c1837240d4f (diff)
downloadsamba-49d82aa7729c5bfa7dde313580630a5ff97fc05a.tar.gz
samba-49d82aa7729c5bfa7dde313580630a5ff97fc05a.tar.bz2
samba-49d82aa7729c5bfa7dde313580630a5ff97fc05a.zip
format-subunit: Don't show reason at all if it is None.
Diffstat (limited to 'selftest/format-subunit')
-rwxr-xr-xselftest/format-subunit4
1 files changed, 3 insertions, 1 deletions
diff --git a/selftest/format-subunit b/selftest/format-subunit
index 2ca69c4af1..325741cfd7 100755
--- a/selftest/format-subunit
+++ b/selftest/format-subunit
@@ -89,7 +89,9 @@ class PlainFormatter(object):
if result in ("success", "xfail"):
self.suites_ok+=1
else:
- self.output_msg("ERROR: Testsuite[%s]\nREASON: %s\n" % (name, reason or ''))
+ self.output_msg("ERROR: Testsuite[%s]\n")
+ if reason is not None:
+ self.output_msg("REASON: %s\n" % (name, reason or ''))
self.suitesfailed.append(name)
if self.immediate and not self.verbose:
out += self.test_output[name]