mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Fix ShTest parsing error when a keyword line doesn't end with a newline.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1b2e041962
commit
ac1af12c28
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user