summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Andreenko <seandree@microsoft.com>2018-05-01 16:05:32 -0700
committerGitHub <noreply@github.com>2018-05-01 16:05:32 -0700
commitfc36988f5417dc600bce75a530e4c9297ec589b2 (patch)
treef69c34c4fcc84205ec1a2ebb7fb12221d5f20c6c
parent0eb32770246386343d8b7fb4c47b58bcd2900570 (diff)
downloadcoreclr-fc36988f5417dc600bce75a530e4c9297ec589b2.tar.gz
coreclr-fc36988f5417dc600bce75a530e4c9297ec589b2.tar.bz2
coreclr-fc36988f5417dc600bce75a530e4c9297ec589b2.zip
Fix arm test list creator for Windows (#17852)
* use "\n" for splitting lines * update comment
-rwxr-xr-xtests/scripts/lst_creator.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/scripts/lst_creator.py b/tests/scripts/lst_creator.py
index dc9de02ac1..2b35646111 100755
--- a/tests/scripts/lst_creator.py
+++ b/tests/scripts/lst_creator.py
@@ -48,8 +48,9 @@ def create_list_file(file_name, metadata):
Args:
file_name (str): Location to write the lstFile
metadata ({ str: { str: str } }): Dictionary mapping test name to
- : a dictionary of key/value
- : attributes.
+ : a tuple, the first tuple's value is
+ : a dictionary of key/value attributes,
+ : the second is test index.
"""
@@ -258,7 +259,7 @@ def parse_lst_file(lst_file):
index = int(unique_name.split("_")[-1])
metadata = defaultdict(lambda: None)
- attributes = item.split(os.linesep)
+ attributes = item.split("\n")
for attribute in attributes:
# Skip the removed new lines.
if len(attribute) == 0: