CompleterTask used to have a failure_message mechanism, then we added failure_epilogu...
[tests.git] / qaapi / qa / tests / plc_start.py
index 40e7540..a4fa66f 100644 (file)
@@ -14,26 +14,15 @@ class plc_start(Test):
     def call(self, plc_name = None):
 
        # Get plc configuration from config
-       plc = PLC(self.config)
-       plcs = getattr(self.config, 'plcs', [])
-       for p in plcs:
-           if p['name'] in [plc_name]:
-               plc.update(p)   
-               
+       plc = self.config.get_plc(plc_name)
        command = "/sbin/service plc start "
        if self.config.verbose:
-           utils.header(command)       
+           utils.header(command, logfile = self.config.logfile)        
        (status, output) = plc.commands(command)
 
        if self.config.verbose:
-           utils.header(output)
+           utils.header(output, logfile = self.config.logfile)
 
-       # Some plcs may fail when trying to start the http/xmlrpc server 
-       # because the port is already in use. We must start a server on 
-       # another port.
-       plc.start_xmlrpc_server()  
-  
-       
        return 1
 
 if __name__ == '__main__':