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 <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
Ayase-252 authored and MylesBorins committed Apr 5, 2021
1 parent 3ab9619 commit 3175559
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 3175559

Please sign in to comment.