def build_needed(self, version, build, buildpath):
     """
     Return True if the tests have never been run against the current changeset of 'build'
     Return False otherwise
     """
     if self.platform == "darwin":
         buildpath = os.path.join(buildpath, "Contents", "MacOS")
     # Find new changeset
     new_changeset = utils.get_changeset(buildpath)
     if not (version, build) in self.changeset:
         self.changeset[(version, build)] = -1
     if self.changeset[(version, build)] != new_changeset:
         self.changeset[(version, build)] = new_changeset
         return True
     return False
Example #2
0
        filename = logfile.name
        logfile.close()

        # Send log file to couchdb
        self.log.info("Sending log file to couchdb at '" + self.couchURI + "'")
        try:
            fb_logs.main(
                [
                    "--log",
                    filename,
                    "--database",
                    self.databasename,
                    "--couch",
                    self.couchURI,
                    "--changeset",
                    utils.get_changeset(self.appdir),
                    "--section",
                    self.section,
                ]
            )
        except Exception:
            self.log.error(
                "Log file not sent to couchdb at server: '" + self.couchURI + "' and database: '" + self.databasename
            )
            self.log.error(traceback.format_exc())

        # Cleanup
        mozRunner.stop()
        self.log.debug("Exiting - Status successful")
        self.cleanup()