示例#1
0
文件: manage.py 项目: splaice/Virtbox
 def cleanup_vm(self):
     controlvm(vm_uuid=self.vm0['uuid'], action='poweroff')
     controlvm(vm_uuid=self.vm1['uuid'], action='poweroff')
     controlvm(vm_uuid=self.vm2['uuid'], action='poweroff')
     time.sleep(5)
     delete_vm(**self.vm0)
     delete_vm(**self.vm1)
     delete_vm(**self.vm2)
示例#2
0
文件: manage.py 项目: splaice/Virtbox
 def cleanup_vm(self):
     delete_vm(**self.vm0)
     delete_vm(**self.vm1)
     delete_vm(**self.vm2)
示例#3
0
文件: manage.py 项目: splaice/Virtbox
 def cleanup_createvm(self):
     delete_ctl(**self.ctl)
     delete_hd(**self.hdd)
     delete_vm(**self.vm)
示例#4
0
文件: manage.py 项目: splaice/Virtbox
 def teardown(self):
     delete_hd(**self.hdd)
     delete_vm(**self.vm)
示例#5
0
文件: manage.py 项目: splaice/Virtbox
 def destroy_vm(self):
     delete_vm(**self.vm)
示例#6
0
文件: manage.py 项目: splaice/Virtbox
 def cleanup_createvm(self):
     delete_vm(name=self.vm_name)