mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1063528 - Omit spurious newline for unexpected pass in the tbplformatter.;r=Ms2ger
This commit is contained in:
parent
856512d217
commit
3a18f5f79a
@ -75,7 +75,7 @@ class TbplFormatter(BaseFormatter):
|
||||
|
||||
if "expected" in data:
|
||||
if not message:
|
||||
message = "- expected %s\n" % data["expected"]
|
||||
message = "- expected %s" % data["expected"]
|
||||
failure_line = "TEST-UNEXPECTED-%s | %s | %s %s\n" % (
|
||||
data["status"], self.id_str(data["test"]), data["subtest"],
|
||||
message)
|
||||
|
@ -454,6 +454,21 @@ class TestTBPLFormatter(FormatterTest):
|
||||
self.logger.test_end("timeout_test", "OK")
|
||||
self.logger.suite_end()
|
||||
|
||||
def test_single_newline(self):
|
||||
self.logger.suite_start([])
|
||||
self.logger.test_start("test1")
|
||||
self.set_position()
|
||||
self.logger.test_status("test1", "subtest",
|
||||
status="PASS",
|
||||
expected="FAIL")
|
||||
self.logger.test_end("test1", "OK")
|
||||
self.logger.suite_end()
|
||||
|
||||
# This sequence should not produce blanklines
|
||||
for line in self.loglines:
|
||||
self.assertNotEqual("", line, "No blank line should be present in: %s" %
|
||||
self.loglines)
|
||||
|
||||
|
||||
class TestMachFormatter(FormatterTest):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user