Changeset 93140 in vbox
- Timestamp:
- Jan 7, 2022 3:57:25 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r93139 r93140 3238 3238 oCreds.applyDefaultsIfNotSet(oTestVm); 3239 3239 3240 fRebooted = False; 3240 3241 fRc = True; 3241 3242 … … 3301 3302 (oSession, oTxsSession) = self.oTstDrv.txsRebootAndReconnectViaTcp(oSession, oTxsSession, 3302 3303 cMsTimeout = 3 * 60000); 3303 if not oSession or not oTxsSession: 3304 if oSession \ 3305 and oTxsSession: 3306 # Set reboot flag (needed later for session closing). 3307 fRebooted = True; 3308 else: 3309 reporter.error('Rebooting via TXS failed'); 3304 3310 try: oGuestProcess.terminate(); 3305 3311 except: reporter.logXcpt(); … … 3336 3342 oGuestSession.close(); 3337 3343 except: 3338 fRc = reporter.errorXcpt(); 3344 # Closing the guest session will fail when the guest reboot has been triggered, 3345 # as the session object will be cleared on a guest reboot. 3346 if fRebooted: 3347 reporter.logXcpt('Closing guest session failed, good (guest rebooted)'); 3348 else: # ... otherwise this (still) should succeed. Report so if it doesn't. 3349 reporter.errorXcpt('Closing guest session failed'); 3339 3350 3340 3351 return (fRc, oTxsSession);
Note:
See TracChangeset
for help on using the changeset viewer.