Beispiel #1
0
    def __retrieveConfigFile(self):
        """ Retrieve the configuration file from the peer """
        if not os.path.exists(self.peerDir):
            os.makedirs(self.peerDir)

        self.longRunningProcesses.append(syncGetHTTPFile(
            '%sconfig' % self.httpLoc, self.peerDir))
Beispiel #2
0
    def __retrieveLogFiles(self):
        """ Retrieve the log files from the peer """
        self.lastResultLoc = "%s-%s-%s" % (self.resultLoc, time.time(), self.currentTest.testId)
        os.makedirs(self.lastResultLoc)

        self.longRunningProcesses.append(syncGetHTTPFile(
            '%slogs.tar.gz' % self.httpLoc, self.lastResultLoc, True))

        self.longRunningProcesses.append(yates.Utils.Envcat.store_log(
            self.envServer, self.envServerPort,
            '%s/envlog.txt' % self.lastResultLoc, self.log_index))