зеркало из https://github.com/mozilla/gecko-dev.git
Bug 934170: Make mach xpcshell-test work for comm-central, r=ted
--HG-- extra : rebase_source : d5ce19f18108c598aaa0a519e73a268f1dba91b5
This commit is contained in:
Родитель
c7e6692f43
Коммит
4f74dc4614
|
@ -52,6 +52,10 @@ class Clobberer(object):
|
|||
self.src_clobber = os.path.join(topsrcdir, 'CLOBBER')
|
||||
self.obj_clobber = os.path.join(topobjdir, 'CLOBBER')
|
||||
|
||||
# Try looking for mozilla/CLOBBER, for comm-central
|
||||
if not os.path.isfile(self.src_clobber):
|
||||
self.src_clobber = os.path.join(topsrcdir, 'mozilla', 'CLOBBER')
|
||||
|
||||
assert os.path.isfile(self.src_clobber)
|
||||
|
||||
def clobber_needed(self):
|
||||
|
|
|
@ -79,6 +79,9 @@ class XPCShellRunner(MozbuildObject):
|
|||
if build_path not in sys.path:
|
||||
sys.path.append(build_path)
|
||||
|
||||
if not os.path.isfile(os.path.join(self.topsrcdir, 'build', 'automationutils.py')):
|
||||
sys.path.append(os.path.join(self.topsrcdir, 'mozilla', 'build'))
|
||||
|
||||
if test_paths == ['all']:
|
||||
self.run_suite(interactive=interactive,
|
||||
keep_going=keep_going, shuffle=shuffle, sequential=sequential,
|
||||
|
@ -391,12 +394,6 @@ class B2GXPCShellRunner(MozbuildObject):
|
|||
|
||||
return runtestsb2g.run_remote_xpcshell(parser, options, args, log)
|
||||
|
||||
def is_platform_supported(cls):
|
||||
"""Must have a Firefox, Android or B2G build."""
|
||||
return conditions.is_android(cls) or \
|
||||
conditions.is_b2g(cls) or \
|
||||
conditions.is_firefox(cls)
|
||||
|
||||
@CommandProvider
|
||||
class MachCommands(MachCommandBase):
|
||||
def __init__(self, context):
|
||||
|
@ -406,7 +403,6 @@ class MachCommands(MachCommandBase):
|
|||
setattr(self, attr, getattr(context, attr, None))
|
||||
|
||||
@Command('xpcshell-test', category='testing',
|
||||
conditions=[is_platform_supported],
|
||||
description='Run XPCOM Shell tests (API direct unit testing)',
|
||||
parser=_parser)
|
||||
@CommandArgument('test_paths', default='all', nargs='*', metavar='TEST',
|
||||
|
|
Загрузка…
Ссылка в новой задаче