Changeset 93037 in vbox for trunk/src/VBox/ValidationKit/tests
- Timestamp:
- Dec 21, 2021 10:40:28 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 149040
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r92982 r93037 3243 3243 # Create a process. 3244 3244 # 3245 # That process will also be used later to see if the session cleanup worked upon reboot. 3246 # 3245 3247 sImage = self.oTstDrv.getGuestSystemShell(oTestVm); 3246 3248 asArgs = [ sImage, ]; … … 3279 3281 oThreadReboot.start(); 3280 3282 3281 # Not sure why this fudge is needed...3282 reporter.log('5 second wait fudge before triggering reboot ...');3283 self.oTstDrv.sleep(5);3284 3285 3283 # Do the reboot. 3286 3284 reporter.log('Rebooting guest and reconnecting TXS ...'); … … 3295 3293 oThreadReboot.join(); 3296 3294 3295 # Check that the guest session now still has the formerly guest process object created above, 3296 # but with the "down" status now (because of guest reboot). 3297 try: 3298 aoGuestProcs = self.oTstDrv.oVBoxMgr.getArray(oGuestSession, 'processes'); 3299 if len(aoGuestProcs) == 1: 3300 enmProcSts = aoGuestProcs[0].status; 3301 if enmProcSts != vboxcon.ProcessStatus_Down: 3302 fRc = reporter.error('Old guest process (before reboot) has status %d, expected %s' \ 3303 % enmProcSts, vboxcon.ProcessStatus_Down); 3304 else: 3305 fRc = reporter.error('Old guest session (before reboot) has %d processes registered, expected 1' \ 3306 % (len(aoGuestProcs))); 3307 except: 3308 fRc = reporter.errorXcpt(); 3297 3309 # 3298 3310 # Try make sure we don't leave with a stale process on failure.
Note:
See TracChangeset
for help on using the changeset viewer.