Bug 970302 - Ensure a TestManifest is always used when running xpcshell tests; r=ted

--HG--
extra : rebase_source : 30a296e66d25d5e4759b2ad3a420f94a5543a090
extra : amend_source : ac405c60d907f1bae3f376aa4525d8f93f53cc18
This commit is contained in:
Gregory Szorc 2014-02-10 13:11:23 -08:00
parent 76b5dfed11
commit 9c1ce8b8e1

View File

@ -46,8 +46,9 @@ class InvalidTestPathError(Exception):
class XPCShellRunner(MozbuildObject):
"""Run xpcshell tests."""
def run_suite(self, **kwargs):
manifest = os.path.join(self.topobjdir, '_tests', 'xpcshell',
'xpcshell.ini')
from manifestparser import TestManifest
manifest = TestManifest(manifests=[os.path.join(self.topobjdir,
'_tests', 'xpcshell', 'xpcshell.ini')])
return self._run_xpcshell_harness(manifest=manifest, **kwargs)