Example #1
0
    def run_mochitest_remote(self, test_paths, **kwargs):
        if self.get_build_var:
            host_webapps_dir = os.path.join(self.get_build_var('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

        if self.device_name.startswith('emulator'):
            emulator = 'arm'
            if 'x86' in self.device_name:
                emulator = 'x86'
            kwargs['emulator'] = emulator

        self._ensure_state_subdir_exists('.')

        driver = self._spawn(BuildDriver)
        driver.install_tests(remove=False)

        mochitest = self._spawn(MochitestRunner)
        return mochitest.run_b2g_test(b2g_home=self.b2g_home,
                xre_path=self.xre_path, test_paths=test_paths, **kwargs)
Example #2
0
    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)
Example #3
0
    def run_mochitest_remote(self, test_paths, **kwargs):
        if self.get_build_var:
            host_webapps_dir = os.path.join(
                self.get_build_var('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

        if self.device_name.startswith('emulator'):
            emulator = 'arm'
            if 'x86' in self.device_name:
                emulator = 'x86'
            kwargs['emulator'] = emulator

        self._ensure_state_subdir_exists('.')

        driver = self._spawn(BuildDriver)
        driver.install_tests(remove=False)

        mochitest = self._spawn(MochitestRunner)
        return mochitest.run_b2g_test(b2g_home=self.b2g_home,
                                      xre_path=self.xre_path,
                                      test_paths=test_paths,
                                      **kwargs)
    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)
Example #5
0
    def run_mochitest_b2g_desktop(self, test_paths, **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_paths=test_paths, **kwargs)
    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)
Example #7
0
    def run_mochitest_remote(self, test_paths, **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(b2g_home=self.b2g_home, xre_path=self.xre_path, test_paths=test_paths, **kwargs)
    def run_mochitest_remote(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(b2g_home=self.b2g_home,
                                      xre_path=self.xre_path,
                                      test_file=test_file,
                                      **kwargs)
Example #9
0
    def run_mochitest_remote(self, test_paths, **kwargs):
        from mozbuild.controller.building import BuildDriver

        if self.device_name.startswith('emulator'):
            emulator = 'arm'
            if 'x86' in self.device_name:
                emulator = 'x86'
            kwargs['emulator'] = emulator

        self._ensure_state_subdir_exists('.')

        driver = self._spawn(BuildDriver)
        driver.install_tests(remove=False)

        mochitest = self._spawn(MochitestRunner)
        return mochitest.run_b2g_test(b2g_home=self.b2g_home,
                xre_path=self.xre_path, test_paths=test_paths, **kwargs)
Example #10
0
    def run_mochitest_remote(self, test_paths, **kwargs):
        from mozbuild.controller.building import BuildDriver

        if self.device_name.startswith('emulator'):
            emulator = 'arm'
            if 'x86' in self.device_name:
                emulator = 'x86'
            kwargs['emulator'] = emulator

        self._ensure_state_subdir_exists('.')

        driver = self._spawn(BuildDriver)
        driver.install_tests(remove=False)

        mochitest = self._spawn(MochitestRunner)
        return mochitest.run_b2g_test(b2g_home=self.b2g_home,
                                      xre_path=self.xre_path,
                                      test_paths=test_paths,
                                      **kwargs)
Example #11
0
    def run_mochitest_b2g_desktop(self, test_paths, **kwargs):
        kwargs["profile"] = kwargs.get("profile") or os.environ.get("GAIA_PROFILE")
        if not kwargs["profile"] or not os.path.isdir(kwargs["profile"]):
            print(GAIA_PROFILE_NOT_FOUND % "mochitest-b2g-desktop")
            return 1

        if os.path.isfile(os.path.join(kwargs["profile"], "extensions", "*****@*****.**")):
            print(GAIA_PROFILE_IS_DEBUG % ("mochitest-b2g-desktop", kwargs["profile"]))
            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)
Example #12
0
    def run_mochitest_b2g_desktop(self, test_paths, **kwargs):
        kwargs['profile'] = kwargs.get('profile') or os.environ.get('GAIA_PROFILE')
        if not kwargs['profile'] or not os.path.isdir(kwargs['profile']):
            print(GAIA_PROFILE_NOT_FOUND % 'mochitest-b2g-desktop')
            return 1

        if os.path.isfile(os.path.join(kwargs['profile'], 'extensions',
                                       '*****@*****.**')):
            print(GAIA_PROFILE_IS_DEBUG % ('mochitest-b2g-desktop',
                                           kwargs['profile']))
            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)
Example #13
0
    def run_mochitest_b2g_desktop(self, test_paths, **kwargs):
        kwargs['profile'] = kwargs.get('profile') or os.environ.get('GAIA_PROFILE')
        if not kwargs['profile'] or not os.path.isdir(kwargs['profile']):
            print(GAIA_PROFILE_NOT_FOUND % 'mochitest-b2g-desktop')
            return 1

        if os.path.isfile(os.path.join(kwargs['profile'], 'extensions',
                                       '*****@*****.**')):
            print(GAIA_PROFILE_IS_DEBUG % ('mochitest-b2g-desktop',
                                           kwargs['profile']))
            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)
Example #14
0
    def run_mochitest_remote(self, test_paths, **kwargs):
        if self.get_build_var:
            host_webapps_dir = os.path.join(self.get_build_var("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

        if self.device_name.startswith("emulator"):
            emulator = "arm"
            if "x86" in self.device_name:
                emulator = "x86"
            kwargs["emulator"] = emulator

        self._ensure_state_subdir_exists(".")

        driver = self._spawn(BuildDriver)
        driver.install_tests(remove=False)

        mochitest = self._spawn(MochitestRunner)
        return mochitest.run_b2g_test(b2g_home=self.b2g_home, xre_path=self.xre_path, test_paths=test_paths, **kwargs)
    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)
Example #16
0
    def run_mochitest_b2g_desktop(self, test_file, **kwargs):
        self._ensure_state_subdir_exists('.')

        mochitest = self._spawn(MochitestRunner)
        return mochitest.run_b2g_test(test_file=test_file, **kwargs)