def get_parser(): here = os.path.abspath(os.path.dirname(__file__)) build_obj = MozbuildObject.from_environment(cwd=here) if conditions.is_android(build_obj): return reftestcommandline.RemoteArgumentsParser() elif conditions.is_mulet(build_obj): return reftestcommandline.B2GArgumentParser() else: return reftestcommandline.DesktopArgumentsParser()
def get_parser(): here = os.path.abspath(os.path.dirname(__file__)) build_obj = MozbuildObject.from_environment(cwd=here) if conditions.is_android(build_obj): return reftestcommandline.RemoteArgumentsParser() elif conditions.is_mulet(build_obj): return reftestcommandline.B2GArgumentParser() else: return reftestcommandline.DesktopArgumentsParser()
def _run_reftest(self, **kwargs): process_test_objects(kwargs) reftest = self._spawn(ReftestRunner) if conditions.is_android(self): from mozrunner.devices.android_device import verify_android_device verify_android_device(self, install=True, xre=True) return reftest.run_android_test(**kwargs) elif conditions.is_mulet(self): return reftest.run_mulet_test(**kwargs) return reftest.run_desktop_test(**kwargs)
def _run_reftest(self, **kwargs): process_test_objects(kwargs) reftest = self._spawn(ReftestRunner) if conditions.is_android(self): from mozrunner.devices.android_device import verify_android_device verify_android_device(self, install=True, xre=True) return reftest.run_android_test(**kwargs) elif conditions.is_mulet(self): return reftest.run_mulet_test(**kwargs) return reftest.run_desktop_test(**kwargs)