- Timestamp:
- Dec 16, 2021 8:53:55 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r92954 r92955 2497 2497 oSession.close(); 2498 2498 if not fRc: 2499 try: self.oVBox.unregisterMachine(oVM.id);2500 except: pass;2501 2499 if self.fpApiVer >= 4.0: 2500 try: oVM.unregister(vboxcon.CleanupMode_Full); 2501 except: reporter.logXcpt(); 2502 2502 try: 2503 2503 if self.fpApiVer >= 4.3: 2504 2504 oProgress = oVM.deleteConfig([]); 2505 2505 else: 2506 oProgress = oVM.delete( None);2506 oProgress = oVM.delete([]); 2507 2507 self.waitOnProgress(oProgress); 2508 2508 except: 2509 2509 reporter.logXcpt(); 2510 2510 else: 2511 try: self.oVBox.unregisterMachine(oVM.id); 2512 except: reporter.logXcpt(); 2511 2513 try: oVM.deleteSettings(); 2512 2514 except: reporter.logXcpt(); … … 2597 2599 2598 2600 # Failed. Unregister the machine and delete it. 2599 try: self.oVBox.unregisterMachine(oVM.id);2600 except: pass;2601 2602 2601 if self.fpApiVer >= 4.0: 2602 try: oVM.unregister(vboxcon.CleanupMode_Full); 2603 except: reporter.logXcpt(); 2603 2604 try: 2604 2605 if self.fpApiVer >= 4.3: 2605 2606 oProgress = oVM.deleteConfig([]); 2606 2607 else: 2607 oProgress = oVM.delete( None);2608 oProgress = oVM.delete([]); 2608 2609 self.waitOnProgress(oProgress); 2609 2610 except: 2610 2611 reporter.logXcpt(); 2611 2612 else: 2613 try: self.oVBox.unregisterMachine(oVM.id); 2614 except: reporter.logXcpt(); 2612 2615 try: oVM.deleteSettings(); 2613 2616 except: reporter.logXcpt();
Note:
See TracChangeset
for help on using the changeset viewer.