[test] Enable Andoid testing on more JS test suites

Bug: chromium:866862
Change-Id: Ib6c89d88344c2348de155fd54eafa03cf18ea88d
Reviewed-on: https://chromium-review.googlesource.com/1206631
Reviewed-by: Sergiy Byelozyorov <sergiyb@chromium.org>
Commit-Queue: Michael Achenbach <machenbach@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55674}
This commit is contained in:
Michael Achenbach 2018-09-05 13:15:59 +02:00 committed by Commit Bot
parent c4bffcd56d
commit 217cced963
2 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,7 @@
'os': 'Android',
},
'tests': [
{'name': 'mjsunit', 'variant': 'default', 'shards': 2},
{'name': 'd8testing', 'variant': 'default', 'shards': 2},
],
},
##############################################################################

View File

@ -332,6 +332,8 @@ class D8TestCase(TestCase):
def _get_resources(self):
"""Returns the list of files needed by a test case."""
if not self._get_source_path():
return []
result = set()
to_check = [self._get_source_path()]
# Recurse over all files until reaching a fixpoint.