Permalink
Browse files
test: do not strip left whitespace in pseudo-tty tests
PR-URL: #27244
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
- Loading branch information...
Showing
with
7 additions
and
7 deletions.
-
+6
−6
test/pseudo-tty/console_colors.out
-
+1
−1
test/pseudo-tty/testcfg.py
|
|
@@ -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 |
|
|
@@ -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 |
|
|
|
|
|
@@ -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)) |
|
|
|
0 comments on commit
ed89311