Esempio n. 1
0
 def _install_vbox_dar_win(self, path_to_installer):
     """
     Same procedure for MACOS and windows
     :param path_to_installer:
     :return:
     """
     return Executor.exec_stream(self.cmd.install_vbox(path_to_installer),
                                 self.message, self.error)
Esempio n. 2
0
 def import_vm(self, path_to_image, on_data, on_error):
     """
     Given path to ova file executes the command that imports the image into VM
     :param path_to_image:
     :param on_data:
     :param on_error:
     :return:
     """
     self.message("Importing virtual appliance..")
     return Executor.exec_stream(self.cmd.import_vm(path_to_image=path_to_image,
                                                    vmname=self.config["vmname"]),
                                 on_data=on_data, on_error=on_error)
Esempio n. 3
0
 def onvm_launch_setup_script(self):
     def on_data(msg):
         self.message(msg=msg, size=8, color="black")
     return Executor.exec_stream(
         self.cmd.onvm_launch_setup_script(),
         on_data=on_data, on_error=on_data)
Esempio n. 4
0
 def test_async_install(self):
     def output(s):
         print("OUTPUT: " + s)
     Executor.exec_stream(
         """vboxmanage guestcontrol Island run --exe "/bin/bash" --username root --password islands --wait-stdout --wait-stderr -- bash /root/isetup.sh -b dev""",
         on_data=output, on_error=output, verbose=True)