Ejemplo n.º 1
0
def spinUPVM(bmcPluginName):
    bmcUtil = Util()
    bmcUtil.removeFile("automation.log")
    if bmcPluginName == "All":
        # All
        bmcCustomeLog.log("\n Multiple plugin testing started here........." + bmcPluginName)
        bmcListOfPluginArray = bmcUtil.getWhiteListedPlugins()
        bmcCustomeLog.log(len(bmcListOfPluginArray))
        if len(bmcListOfPluginArray) >= 1:
                    bmcCustomeLog.log("\n White listed plugins list.......!  ")
                    bmcCustomeLog.log(bmcListOfPluginArray)
        else:    
                bmcListOfPluginArray = bmcUtil.getFinalListPluginList()
                
        if len(bmcListOfPluginArray) >= 1:
                for bmcPluginName in bmcListOfPluginArray:
                    startSpinUP(bmcPluginName)
        
    else:
        bmcCustomeLog.log("\n Started Execution................!")
        startSpinUP(bmcPluginName)
        bmcCustomeLog.log("\n Execution is END.................!")