def run(self): """ Run tests for all specified builds. """ try: self.prepare_application(self.binary) ini = application.ApplicationIni(self._application) print '*** Application: %s %s' % ( ini.get('App', 'Name'), ini.get('App', 'Version')) # Print platform details print '*** Platform: %s %s %sbit' % ( str(mozinfo.os).capitalize(), mozinfo.version, mozinfo.bits) # XXX: mktemp is marked as deprecated but lets use it because with # older versions of Mercurial the target folder should not exist. path = tempfile.mktemp(".mozmill-tests") print "*** Cloning test repository to '%s'" % path self.repository.clone(path) # Update the mozmill-test repository to match the Gecko branch app_repository_url = ini.get('App', 'SourceRepository') branch_name = application.get_mozmill_tests_branch(app_repository_url) print "*** Updating branch of test repository to '%s'" % branch_name self.repository.update(branch_name) if self.options.addons: self.prepare_addons() if self.options.screenshot_path: path = os.path.abspath(self.options.screenshot_path) if not os.path.isdir(path): os.makedirs(path) self.persisted["screenshotPath"] = path self.run_tests() except Exception, e: exception_type, exception, tb = sys.exc_info() traceback.print_exception(exception_type, exception, tb)
def run(self): """ Run tests for all specified builds. """ try: self.prepare_application(self.binary) ini = application.ApplicationIni(self._application) print '*** Application: %s %s' % (ini.get( 'App', 'Name'), ini.get('App', 'Version')) # Print platform details print '*** Platform: %s %s %sbit' % (str( mozinfo.os).capitalize(), mozinfo.version, mozinfo.bits) # XXX: mktemp is marked as deprecated but lets use it because with # older versions of Mercurial the target folder should not exist. path = tempfile.mktemp(".mozmill-tests") print "*** Cloning test repository to '%s'" % path self.repository.clone(path) # Update the mozmill-test repository to match the Gecko branch app_repository_url = ini.get('App', 'SourceRepository') branch_name = application.get_mozmill_tests_branch( app_repository_url) print "*** Updating branch of test repository to '%s'" % branch_name self.repository.update(branch_name) if self.options.addons: self.prepare_addons() if self.options.screenshot_path: path = os.path.abspath(self.options.screenshot_path) if not os.path.isdir(path): os.makedirs(path) self.persisted["screenshotPath"] = path self.run_tests() except Exception, e: exception_type, exception, tb = sys.exc_info() traceback.print_exception(exception_type, exception, tb)
def run(self): """ Run tests for all specified builds. """ try: self.prepare_application(self.binary) version_info = mozversion.get_version(self._application) print '*** Application: %s %s (%s)' % ( version_info.get('application_display_name'), version_info.get('application_version'), self._application) # Print platform details print '*** Platform: %s %s %sbit' % ( str(mozinfo.os).capitalize(), mozinfo.version, mozinfo.bits) path = os.path.join(self.workspace, 'mozmill-tests') print "*** Cloning test repository to '%s'" % path self.repository.clone(path) # Update the mozmill-test repository to match the Gecko branch app_repository_url = version_info.get('application_repository') branch_name = application.get_mozmill_tests_branch(app_repository_url) print "*** Updating branch of test repository to '%s'" % branch_name self.repository.update(branch_name) if self.options.addons: self.prepare_addons() path = os.path.join(self.workspace, 'screenshots') if not os.path.isdir(path): os.makedirs(path) self.persisted["screenshotPath"] = path self.run_tests() except Exception, e: self.exception_type, self.exception, self.tb = sys.exc_info()
def run(self): """ Run tests for all specified builds. """ try: self.prepare_application(self.binary) version_info = mozversion.get_version(self._application) self.mozlogger.info('Application: %s %s (%s)' % ( version_info.get('application_display_name'), version_info.get('application_version'), self._application)) self.mozlogger.info('Platform: %s %s %sbit' % ( str(mozinfo.os).capitalize(), mozinfo.version, mozinfo.bits)) path = os.path.join(self.workspace, 'mozmill-tests') self.mozlogger.info('Cloning test repository to: %s' % path) self.repository.clone(path) # Update the mozmill-test repository to match the Gecko branch app_repository_url = version_info.get('application_repository') branch_name = application.get_mozmill_tests_branch(app_repository_url) self.mozlogger.info('Updating branch of test repository to: %s' % branch_name) self.repository.update(branch_name) if self.options.addons: self.prepare_addons() path = os.path.join(self.workspace, 'screenshots') if not os.path.isdir(path): os.makedirs(path) self.persisted["screenshotPath"] = path self.run_tests() except Exception, e: self.exception_type, self.exception, self.tb = sys.exc_info()