Bug 1334525 - Handle tuple types and WPT manifests correctly; r=chmanchester

beb43155b7a6 changed WPT items to be 3-tuples instead of 2-tuples.
This broke test_defaults_for_path().

MozReview-Commit-ID: 7M0RcQ7bOIU

--HG--
extra : rebase_source : 28e44e5206abb7939d540ba809ec71325ead341c
This commit is contained in:
Gregory Szorc 2017-04-12 15:15:36 -07:00
parent 39d3aedd82
commit 81cd3ec73b

View File

@ -1443,7 +1443,7 @@ class BuildReader(object):
if isinstance(paths, tuple):
path, tests_root = paths
tests_root = mozpath.join(ctx.relsrcdir, tests_root)
for t in (mozpath.join(tests_root, path) for path, _ in obj):
for t in (mozpath.join(tests_root, it[0]) for it in obj):
result_context.test_files.add(mozpath.dirname(t) + '/**')
else:
for t in obj.tests: