summaryrefslogtreecommitdiff
path: root/cpp/test/Slice/errorDetection/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Slice/errorDetection/run.py')
-rwxr-xr-xcpp/test/Slice/errorDetection/run.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/test/Slice/errorDetection/run.py b/cpp/test/Slice/errorDetection/run.py
index 713818fa60d..65d56b05688 100755
--- a/cpp/test/Slice/errorDetection/run.py
+++ b/cpp/test/Slice/errorDetection/run.py
@@ -39,11 +39,10 @@ for file in files:
continue
regex2 = re.compile(r"^.*(?=" + file + ")")
- diffs = ""
i = 0
- while i < len(lines1) and i < len(lines2):
- line1 = regex2.sub("", lines1[i])
- line2 = regex2.sub("", lines2[i])
+ while i < len(lines1):
+ line1 = regex2.sub("", lines1[i]).strip()
+ line2 = regex2.sub("", lines2[i]).strip()
if line1 != line2:
print "failed!"
break