Esempio n. 1
0
    def run_mulet_test(self, **kwargs):
        """Runs a mulet reftest."""
        self._setup_objdir(**kwargs)
        import runreftestmulet

        if self.substs.get('ENABLE_MARIONETTE') != '1':
            print(MARIONETTE_DISABLED % self.mozconfig['path'])
            return 1

        if not kwargs["profile"]:
            gaia_profile = os.environ.get('GAIA_PROFILE')
            if not gaia_profile:
                print(GAIA_PROFILE_NOT_FOUND)
                return 1
            kwargs["profile"] = gaia_profile

        if os.path.isfile(
                os.path.join(kwargs["profile"], 'extensions',
                             '*****@*****.**')):
            print(GAIA_PROFILE_IS_DEBUG % kwargs["profile"])
            return 1

        kwargs['app'] = self.get_binary_path()
        kwargs['mulet'] = True
        kwargs['oop'] = True

        if kwargs['oop']:
            kwargs['browser_arg'] = '-oop'
        if not kwargs['app'].endswith('-bin'):
            kwargs['app'] = '%s-bin' % kwargs['app']
        if not os.path.isfile(kwargs['app']):
            kwargs['app'] = kwargs['app'][:-len('-bin')]

        return runreftestmulet.run(**kwargs)
Esempio n. 2
0
    def run_mulet_test(self, **kwargs):
        """Runs a mulet reftest."""
        self._setup_objdir(**kwargs)
        import runreftestmulet

        if self.substs.get('ENABLE_MARIONETTE') != '1':
            print(MARIONETTE_DISABLED % self.mozconfig['path'])
            return 1

        if not kwargs["profile"]:
            gaia_profile = os.environ.get('GAIA_PROFILE')
            if not gaia_profile:
                print(GAIA_PROFILE_NOT_FOUND)
                return 1
            kwargs["profile"] = gaia_profile

        if os.path.isfile(os.path.join(kwargs["profile"], 'extensions',
                                       '*****@*****.**')):
            print(GAIA_PROFILE_IS_DEBUG % kwargs["profile"])
            return 1

        kwargs['app'] = self.get_binary_path()
        kwargs['mulet'] = True
        kwargs['oop'] = True

        if kwargs['oop']:
            kwargs['browser_arg'] = '-oop'
        if not kwargs['app'].endswith('-bin'):
            kwargs['app'] = '%s-bin' % kwargs['app']
        if not os.path.isfile(kwargs['app']):
            kwargs['app'] = kwargs['app'][:-len('-bin')]

        return runreftestmulet.run(**kwargs)