projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b2e041
)
Fix ShTest parsing error when a keyword line doesn't end with a newline.
author
Daniel Dunbar
<daniel@zuster.org>
Wed, 22 Oct 2014 00:34:31 +0000
(
00:34
+0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Wed, 22 Oct 2014 00:34:31 +0000
(
00:34
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220354
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/lit/lit/TestRunner.py
patch
|
blob
|
history
diff --git
a/utils/lit/lit/TestRunner.py
b/utils/lit/lit/TestRunner.py
index
ca87b05
..
f280d3f
100644
(file)
--- a/
utils/lit/lit/TestRunner.py
+++ b/
utils/lit/lit/TestRunner.py
@@
-343,6
+343,10
@@
def parseIntegratedTestScriptCommands(source_path):
# Read the entire file contents.
data = f.read()
+ # Ensure the data ends with a newline.
+ if not data.endswith('\n'):
+ data = data + '\n'
+
# Iterate over the matches.
line_number = 1
last_match_position = 0