diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-03-31 03:32:23 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-03-31 03:32:23 +0200 |
commit | 49d82aa7729c5bfa7dde313580630a5ff97fc05a (patch) | |
tree | db44f351ba2069952c6542564d5cebe84cdf722f /selftest/format-subunit | |
parent | a8ac7fda573a924debf165d39eff3c1837240d4f (diff) | |
download | samba-49d82aa7729c5bfa7dde313580630a5ff97fc05a.tar.gz |
format-subunit: Don't show reason at all if it is None.
Diffstat (limited to 'selftest/format-subunit')
-rwxr-xr-x | selftest/format-subunit | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/selftest/format-subunit b/selftest/format-subunit index 2ca69c4af1c..325741cfd74 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] |