Skip to content

Commit

Permalink
test: add extra space in test failure output
Browse files Browse the repository at this point in the history
PR-URL: #37957
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
  • Loading branch information
Ayase-252 authored and MylesBorins committed Apr 4, 2021
1 parent 618da81 commit 2a36867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/pseudo-tty/testcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def IsFailureOutput(self, output):
raw_lines = (output.stdout + output.stderr).split('\n')
outlines = [ s.rstrip() for s in raw_lines if not self.IgnoreLine(s) ]
if len(outlines) != len(patterns):
print("length differs.")
print(" length differs.")
print("expect=%d" % len(patterns))
print("actual=%d" % len(outlines))
print("patterns:")
Expand All @@ -82,7 +82,7 @@ def IsFailureOutput(self, output):
return True
for i in range(len(patterns)):
if not re.match(patterns[i], outlines[i]):
print("match failed")
print(" match failed")
print("line=%d" % i)
print("expect=%s" % patterns[i])
print("actual=%s" % outlines[i])
Expand Down

0 comments on commit 2a36867

Please sign in to comment.