8 class plc_uninstall(Test):
10 Completely removes the installed myplc
13 def call(self, plc_name = None, remove_all = False):
15 # Get plc configuration from config
16 plc = self.config.get_plc(plc_name)
17 command = "/sbin/service plc safestop && rpm -e myplc "
19 command += " && rm -rf /plc/data"
21 if self.config.verbose:
22 utils.header("Removing myplc")
23 utils.header("\n".join(command))
25 (status, output) = plc.commands(command)
27 if self.config.verbose:
28 utiils.header("\n".join(output))
32 if __name__ == '__main__':
33 args = tuple(sys.argv[1:])