Skip to content

Commit

Permalink
test: do not strip left whitespace in pseudo-tty tests
Browse files Browse the repository at this point in the history
PR-URL: #27244
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Beth Griggs <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
  • Loading branch information
BridgeAR authored and ZYSzys committed Apr 19, 2019
1 parent 8712edf commit ed89311
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions test/pseudo-tty/console_colors.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ string q
{ foo: *[32m'bar'*[39m } with object format param

Error: test
at abc (../fixtures/node_modules/bar.js:4:4)
at abc (../fixtures/node_modules/bar.js:4:4)
foobar
at * (*console_colors.js:*:*)
at * (*console_colors.js:*:*)
*[90m at * (internal*:*:*)*[39m
*[90m at *[39m
*[90m at *[39m
Expand All @@ -14,22 +14,22 @@ at * (*console_colors.js:*:*)
*[90m at *[39m

Error: Should not ever get here.
at * (*node_modules*[4m*node_modules*[24m*bar.js:*:*)
at * (*node_modules*[4m*node_modules*[24m*bar.js:*:*)
*[90m at *[39m
*[90m at *[39m
*[90m at *[39m
*[90m at *[39m
*[90m at *[39m
*[90m at *[39m
at * (*console_colors.js:*:*)
at * (*console_colors.js:*:*)
*[90m at *[39m
*[90m at *[39m

Error
at evalmachine.<anonymous>:*:*
at evalmachine.<anonymous>:*:*
*[90m at Script.runInThisContext (vm.js:*:*)*[39m
*[90m at Object.runInThisContext (vm.js:*:*)*[39m
at * (*console_colors.js:*:*)
at * (*console_colors.js:*:*)
*[90m at *[39m
*[90m at *[39m
*[90m at *[39m
Expand Down
2 changes: 1 addition & 1 deletion test/pseudo-tty/testcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def IsFailureOutput(self, output):
patterns.append(pattern)
# Compare actual output with the expected
raw_lines = (output.stdout + output.stderr).split('\n')
outlines = [ s.strip() for s in raw_lines if not self.IgnoreLine(s) ]
outlines = [ s.rstrip() for s in raw_lines if not self.IgnoreLine(s) ]
if len(outlines) != len(patterns):
print("length differs.")
print("expect=%d" % len(patterns))
Expand Down

0 comments on commit ed89311

Please sign in to comment.