Changeset 83879 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Apr 21, 2020 9:09:47 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137408
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddBasic1.py
r83877 r83879 63 63 def __init__(self): 64 64 vbox.TestDriver.__init__(self); 65 self.oTestVmSet = self.oTestVmManager.getSmokeVmSet('nat'); 66 self.asTestsDef = ['install', 'guestprops', 'stdguestprops', 'guestcontrol', 'sharedfolders']; 67 self.asTests = self.asTestsDef; 68 self.asRsrcs = None 65 self.oTestVmSet = self.oTestVmManager.getSmokeVmSet('nat'); 66 self.asTestsDef = ['install', 'guestprops', 'stdguestprops', 'guestcontrol', 'sharedfolders']; 67 self.asTests = self.asTestsDef; 68 self.asRsrcs = None 69 # The file we're going to use as a beacon to wait if the Guest Additions CD-ROM is ready. 70 self.sFileCdWait = ''; 69 71 70 72 self.addSubTestDriver(SubTstDrvAddGuestCtrl(self)); … … 155 157 156 158 if oTestVm.isWindows(): 157 s FileCdWait = 'VBoxWindowsAdditions.exe';159 self.sFileCdWait = 'VBoxWindowsAdditions.exe'; 158 160 elif oTestVm.isLinux(): 159 s FileCdWait = 'VBoxLinuxAdditions.run';161 self.sFileCdWait = 'VBoxLinuxAdditions.run'; 160 162 161 163 self.logVmInfo(oVM); 162 oSession, oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName, fCdWait = True, sFileCdWait = sFileCdWait); 164 oSession, oTxsSession = self.startVmAndConnectToTxsViaTcp(oTestVm.sVmName, fCdWait = True, 165 sFileCdWait = self.sFileCdWait); 163 166 if oSession is not None: 164 167 self.addTask(oTxsSession); … … 418 421 419 422 if fRc: 420 421 423 # Make sure the new, updated kernel is in charge, which eventually got installed by the updating stuff above. 422 424 # Otherwise building the Guest Additions module might not work correctly. 423 reporter.log('Rebooting guest in order to get the latest kernel active ...'); 424 (fRc, oTxsSession) = self.txsRebootAndReconnectViaTcp(oSession, oTxsSession, cMsTimeout); 425 reporter.testStart('Rebooting guest in order to get the latest kernel active ...'); 426 (fRc, oTxsSession) = self.txsRebootAndReconnectViaTcp(oSession, oTxsSession, cMsTimeout, 427 sFileCdWait = self.sFileCdWait); 425 428 if fRc is True: 429 reporter.testDone(); 426 430 427 431 # … … 448 452 # Do the final reboot to get the just installed Guest Additions up and running. 449 453 if fRc: 450 (fRc, oTxsSession) = self.txsRebootAndReconnectViaTcp(oSession, oTxsSession, cMsTimeout); 454 reporter.testStart('Rebooting guest in order to get the updated Guest Additions active ...'); 455 (fRc, oTxsSession) = self.txsRebootAndReconnectViaTcp(oSession, oTxsSession, cMsTimeout, 456 sFileCdWait = self.sFileCdWait); 457 if fRc: 458 pass 459 else: 460 reporter.testFailure('Rebooting and reconnecting to TXS service failed'); 461 reporter.testDone(); 462 else: 463 reporter.testFailure('Rebooting and reconnecting to TXS service failed'); 464 reporter.testDone(); 451 465 452 466 return (fRc, oTxsSession);
Note:
See TracChangeset
for help on using the changeset viewer.