Changeset 84017 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Apr 27, 2020 4:28:19 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 137586
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/tests/additions/tdAddBasic1.py
r83977 r84017 337 337 return (fRc, oTxsSession); 338 338 339 def getAdditionsInstallerResult(self, oTxsSession): 340 """ 341 Extracts the Guest Additions installer exit code from a run before. 342 Assumes that nothing else has been run on the same TXS session in the meantime. 343 """ 344 iRc = 0; 345 (_, sOpcode, abPayload) = oTxsSession.getLastReply(); 346 if sOpcode.startswith('PROC NOK '): # Extract process rc 347 iRc = abPayload[0]; # ASSUMES 8-bit rc for now. 348 ## @todo Parse more statuses here. 349 return iRc; 350 339 351 def testLinuxInstallAdditions(self, oSession, oTxsSession, oTestVm): 340 352 _ = oSession; … … 350 362 # xterm window spawned. 351 363 fRc = self.txsRunTest(oTxsSession, 'VBoxLinuxAdditions.run', 30 * 60 * 1000, 352 '/bin/sh', ('/bin/sh', '${CDROM}/VBoxLinuxAdditions.run', '--nox11'), 353 fCheckSessionStatus = True); 364 '/bin/sh', ('/bin/sh', '${CDROM}/VBoxLinuxAdditions.run', '--nox11')); 354 365 if not fRc: 355 reporter.error('Installing Linux Additions failed (isSuccess=%s, iResult=%d, see log file for details)' 356 % (oTxsSession.isSuccess(), oTxsSession.getResult())); 366 iRc = self.getAdditionsInstallerResult(oTxsSession); 367 # Check for rc == 0 just for completeness. 368 if iRc == 0 \ 369 or iRc == 2: # Can happen if the GA installer has detected older VBox kernel modules running and needs a reboot. 370 reporter.log('Guest has old(er) VBox kernel modules still running; requires a reboot'); 371 fRc = True; 372 373 if not fRc: 374 reporter.error('Installing Linux Additions failed (isSuccess=%s, lastReply=%s, see log file for details)' 375 % (oTxsSession.isSuccess(), oTxsSession.getLastReply())); 357 376 358 377 # … … 368 387 reporter.testStart('Rebooting guest w/ updated Guest Additions active'); 369 388 (fRc, oTxsSession) = self.txsRebootAndReconnectViaTcp(oSession, oTxsSession, 15 * 60 * 1000, 370 389 sFileCdWait = self.sFileCdWait); 371 390 if fRc: 372 391 pass
Note:
See TracChangeset
for help on using the changeset viewer.