Show More
@@ -1612,13 +1612,13 class TTest(Test): | |||
|
1612 | 1612 | pos = -1 |
|
1613 | 1613 | postout = [] |
|
1614 | 1614 | for out_rawline in output: |
|
1615 |
|
|
|
1615 | out_line, lcmd = out_rawline, None | |
|
1616 | 1616 | if salt in out_rawline: |
|
1617 |
|
|
|
1618 | ||
|
1619 |
while |
|
|
1620 |
if not |
|
|
1621 |
|
|
|
1617 | out_line, lcmd = out_rawline.split(salt, 1) | |
|
1618 | ||
|
1619 | while out_line: | |
|
1620 | if not out_line.endswith(b'\n'): | |
|
1621 | out_line += b' (no-eol)\n' | |
|
1622 | 1622 | |
|
1623 | 1623 | # Find the expected output at the current position. |
|
1624 | 1624 | els = [None] |
@@ -1629,10 +1629,10 class TTest(Test): | |||
|
1629 | 1629 | for i, el in enumerate(els): |
|
1630 | 1630 | r = False |
|
1631 | 1631 | if el: |
|
1632 |
r, exact = self.linematch(el, |
|
|
1632 | r, exact = self.linematch(el, out_line) | |
|
1633 | 1633 | if isinstance(r, str): |
|
1634 | 1634 | if r == '-glob': |
|
1635 |
|
|
|
1635 | out_line = ''.join(el.rsplit(' (glob)', 1)) | |
|
1636 | 1636 | r = '' # Warn only this line. |
|
1637 | 1637 | elif r == "retry": |
|
1638 | 1638 | postout.append(b' ' + el) |
@@ -1669,10 +1669,10 class TTest(Test): | |||
|
1669 | 1669 | del els[i] |
|
1670 | 1670 | postout.append(b' ' + el) |
|
1671 | 1671 | else: |
|
1672 |
if self.NEEDESCAPE( |
|
|
1673 |
|
|
|
1674 |
|
|
|
1675 |
postout.append(b' ' + |
|
|
1672 | if self.NEEDESCAPE(out_line): | |
|
1673 | out_line = TTest._stringescape(b'%s (esc)\n' % | |
|
1674 | out_line.rstrip(b'\n')) | |
|
1675 | postout.append(b' ' + out_line) # Let diff deal with it. | |
|
1676 | 1676 | if r != '': # If line failed. |
|
1677 | 1677 | warnonly = WARN_NO |
|
1678 | 1678 | elif warnonly == WARN_UNDEFINED: |
General Comments 0
You need to be logged in to leave comments.
Login now