VirtualBox

Changeset 83879 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Apr 21, 2020 9:09:47 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137408
Message:

Validation Kit/Guest Additions: More reboot fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/additions/tdAddBasic1.py

    r83877 r83879  
    6363    def __init__(self):
    6464        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 = '';
    6971
    7072        self.addSubTestDriver(SubTstDrvAddGuestCtrl(self));
     
    155157
    156158        if oTestVm.isWindows():
    157             sFileCdWait = 'VBoxWindowsAdditions.exe';
     159            self.sFileCdWait = 'VBoxWindowsAdditions.exe';
    158160        elif oTestVm.isLinux():
    159             sFileCdWait = 'VBoxLinuxAdditions.run';
     161            self.sFileCdWait = 'VBoxLinuxAdditions.run';
    160162
    161163        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);
    163166        if oSession is not None:
    164167            self.addTask(oTxsSession);
     
    418421
    419422        if fRc:
    420 
    421423            # Make sure the new, updated kernel is in charge, which eventually got installed by the updating stuff above.
    422424            # 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);
    425428            if fRc is True:
     429                reporter.testDone();
    426430
    427431                #
     
    448452                # Do the final reboot to get the just installed Guest Additions up and running.
    449453                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();
    451465
    452466        return (fRc, oTxsSession);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette