mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1086678 - Provide a default value for subsuite, r=jmaher
This commit is contained in:
parent
f9c72b0c8d
commit
c911a69ae6
@ -1156,7 +1156,7 @@ class TestManifest(ManifestParser):
|
||||
# Look for conditional subsuites, and replace them with the subsuite itself
|
||||
# (if the condition is true), or nothing.
|
||||
for test in tests:
|
||||
subsuite = test.get('subsuite')
|
||||
subsuite = test.get('subsuite', '')
|
||||
if ',' in subsuite:
|
||||
try:
|
||||
subsuite, condition = subsuite.split(',')
|
||||
@ -1172,7 +1172,7 @@ class TestManifest(ManifestParser):
|
||||
|
||||
# Filter on current subsuite
|
||||
if options:
|
||||
if options.subsuite:
|
||||
if hasattr(options, 'subsuite') and options.subsuite:
|
||||
tests = [test for test in tests if options.subsuite == test['subsuite']]
|
||||
else:
|
||||
tests = [test for test in tests if not test['subsuite']]
|
||||
|
Loading…
Reference in New Issue
Block a user