[llvm] c246d6e - [UpdateTestChecks] Fix parsing of RUN: lines with line continuations
Alex Richardson via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 00:25:28 PST 2019
Author: Alex Richardson
Date: 2019-12-03T08:24:48Z
New Revision: c246d6e536c7112019cba6cfc764daeb9088ef29
URL: https://github.com/llvm/llvm-project/commit/c246d6e536c7112019cba6cfc764daeb9088ef29
DIFF: https://github.com/llvm/llvm-project/commit/c246d6e536c7112019cba6cfc764daeb9088ef29.diff
LOG: [UpdateTestChecks] Fix parsing of RUN: lines with line continuations
I accidentally broke this in d9542db49e90457de62af3bfe395aaf4c47b68a5 due
to incorrectly placed parentheses.
Added:
Modified:
llvm/utils/UpdateTestChecks/common.py
Removed:
################################################################################
diff --git a/llvm/utils/UpdateTestChecks/common.py b/llvm/utils/UpdateTestChecks/common.py
index 5cf79012f100..f93f8bf1cc75 100644
--- a/llvm/utils/UpdateTestChecks/common.py
+++ b/llvm/utils/UpdateTestChecks/common.py
@@ -110,7 +110,7 @@ def find_run_lines(test, lines):
run_lines = [raw_lines[0]] if len(raw_lines) > 0 else []
for l in raw_lines[1:]:
if run_lines[-1].endswith('\\'):
- run_lines[-1] = run_lines[-1].rstrip('\\' + ' ' + l)
+ run_lines[-1] = run_lines[-1].rstrip('\\') + ' ' + l
else:
run_lines.append(l)
debug('Found {} RUN lines in {}:'.format(len(run_lines), test))
More information about the llvm-commits
mailing list