mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 616244 - Update the shell test harness to ignore empty and comment-only lines in test manifests. r=dmandelin
This commit is contained in:
parent
63a6fa64d5
commit
77f5974c79
@ -98,7 +98,10 @@ def parse(filename, xul_tester, reldir = ''):
|
||||
for line in f:
|
||||
sline = comment_re.sub('', line)
|
||||
parts = sline.split()
|
||||
if parts[0] == 'include':
|
||||
if len(parts) == 0:
|
||||
# line is empty or just a comment, skip
|
||||
pass
|
||||
elif parts[0] == 'include':
|
||||
include_file = parts[1]
|
||||
include_reldir = os.path.join(reldir, os.path.dirname(include_file))
|
||||
ans += parse(os.path.join(dir, include_file), xul_tester, include_reldir)
|
||||
|
Loading…
Reference in New Issue
Block a user