示例#1
0
    def findPerformanceMachines(self, test, fileStem):
        perfMachines = []
        resources = test.getCompositeConfigValue("performance_test_resource", fileStem)
        for resource in resources:
            perfMachines += plugins.retryOnInterrupt(self.queueMachineInfo.findResourceMachines, resource)

        rawPerfMachines = MachineInfoFinder.findPerformanceMachines(self, test, fileStem)
        for machine in rawPerfMachines:
            if machine != "any":
                perfMachines += self.queueMachineInfo.findActualMachines(machine)
        if "any" in rawPerfMachines and len(resources) == 0:
            return rawPerfMachines
        else:
            return perfMachines
示例#2
0
 def setUpApplication(self, app):
     MachineInfoFinder.setUpApplication(self, app)
     moduleName = queueSystemName(app).lower()
     command = "from " + moduleName + " import MachineInfo as _MachineInfo"
     exec command
     self.queueMachineInfo = _MachineInfo()