VirtualBox

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


Ignore:
Timestamp:
Jan 26, 2024 12:05:29 PM (10 months ago)
Author:
vboxsync
Message:

ValidationKit/tdAddGuestCtrl.py: Always wait for the VBoxService service to start up before restarting it and wait for it come up again after the restart

File:
1 edited

Legend:

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

    r102953 r103079  
    17581758
    17591759            if fRestartVBoxService:
     1760                # Wait for VBoxService to start up properly so, we can shut it down again and restart.
     1761                fRc = self.waitForGuestFacility(oSession, vboxcon.AdditionsFacilityType_VBoxService, "VBoxService",
     1762                                                vboxcon.AdditionsFacilityStatus_Active);
     1763                if not fRc:
     1764                    reporter.log('VBoxService didn\'t startup in time');
     1765                    return False;
     1766
    17601767                self.vboxServiceControl(oTxsSession, oTestVm, fStart = False);
    17611768                self.oTstDrv.sleep(5);
    17621769                self.vboxServiceControl(oTxsSession, oTestVm, fStart = True);
    1763             else:
    1764                 reporter.testStart('Waiting for VBoxService to get started');
    1765                 fRc = self.waitForGuestFacility(oSession, vboxcon.AdditionsFacilityType_VBoxService, "VBoxService",
    1766                                                 vboxcon.AdditionsFacilityStatus_Active);
    1767                 reporter.testDone();
    1768                 if not fRc:
    1769                     return False;
     1770
     1771        # Wait for VBoxService to start up in any case.
     1772        reporter.testStart('Waiting for VBoxService to get started');
     1773        fRc = self.waitForGuestFacility(oSession, vboxcon.AdditionsFacilityType_VBoxService, "VBoxService",
     1774                                        vboxcon.AdditionsFacilityStatus_Active);
     1775        reporter.testDone();
     1776        if not fRc:
     1777            return False;
    17701778
    17711779        #
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