本文整理汇总了Python中mochitest.run_b2g_test函数的典型用法代码示例。如果您正苦于以下问题:Python run_b2g_test函数的具体用法?Python run_b2g_test怎么用?Python run_b2g_test使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了run_b2g_test函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run_mochitest_remote
def run_mochitest_remote(self, test_paths, **kwargs):
if self.target_out:
host_webapps_dir = os.path.join(
self.target_out,
'data',
'local',
'webapps')
if not os.path.isdir(
os.path.join(
host_webapps_dir,
'test-container.gaiamobile.org')):
print(
ENG_BUILD_REQUIRED %
('mochitest-remote', host_webapps_dir))
return 1
from mozbuild.controller.building import BuildDriver
self._ensure_state_subdir_exists('.')
driver = self._spawn(BuildDriver)
driver.install_tests(remove=False)
mochitest = self._spawn(MochitestRunner)
return mochitest.run_b2g_test(
test_paths=test_paths,
**kwargs)
示例2: run_mochitest_b2g_desktop
def run_mochitest_b2g_desktop(self, test_file, **kwargs):
from mozbuild.controller.building import BuildDriver
self._ensure_state_subdir_exists('.')
driver = self._spawn(BuildDriver)
driver.install_tests(remove=False)
mochitest = self._spawn(MochitestRunner)
return mochitest.run_b2g_test(test_file=test_file, **kwargs)
示例3: run_mochitest_remote
def run_mochitest_remote(self, test_file, **kwargs):
self._ensure_state_subdir_exists('.')
mochitest = self._spawn(MochitestRunner)
return mochitest.run_b2g_test(self.b2g_home, self.xre_path,
test_file=test_file, **kwargs)