From a59b6a1bc6714c230339cea0c3a007e905b29191 Mon Sep 17 00:00:00 2001 From: Qingyu Deng Date: Sun, 28 Mar 2021 21:45:03 +0800 Subject: [PATCH] test: add extra space in test failure output PR-URL: https://github.com/nodejs/node/pull/37957 Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: Rich Trott Reviewed-By: Darshan Sen --- test/pseudo-tty/testcfg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/pseudo-tty/testcfg.py b/test/pseudo-tty/testcfg.py index 8f09bef2e95599..ad9461f026366f 100644 --- a/test/pseudo-tty/testcfg.py +++ b/test/pseudo-tty/testcfg.py @@ -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:") @@ -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])