From 0258f5659e47ae964e32fa5bdc8e639aaa4f71a3 Mon Sep 17 00:00:00 2001 From: Austin Henriksen Date: Thu, 5 Mar 2020 21:15:27 -0500 Subject: [PATCH] errorDetection now prints all lines when an unexpected number of errors occurs. (cherry picked from commit 015fb33a5918e8eb01dd167116c1c4d1ef0a6e92) --- cpp/test/Slice/errorDetection/test.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpp/test/Slice/errorDetection/test.py b/cpp/test/Slice/errorDetection/test.py index 687981966cb..6e04ff4d47e 100644 --- a/cpp/test/Slice/errorDetection/test.py +++ b/cpp/test/Slice/errorDetection/test.py @@ -36,6 +36,8 @@ def runClientSide(self, current): with open(os.path.join(testdir, regex1.sub(".err", file)), "r") as f: lines2 = f.readlines() if len(lines1) != len(lines2): + current.writeln("lines1 = {0}".format(lines1)) + current.writeln("lines2 = {0}".format(lines2)) raise RuntimeError("failed (lines1 = {0}, lines2 = {1})!".format(len(lines1), len(lines2))) regex2 = re.compile("^.*(?=" + os.path.basename(file) + ")")