VirtualBox

Ignore:
Timestamp:
May 7, 2020 6:48:31 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137785
Message:

Validation Kit/tdAddBasic1.py: More code for GA runlevel testing.

File:
1 edited

Legend:

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

    r84174 r84178  
    305305                return (False, oTxsSession);
    306306
    307             #
    308             # Wait for the GAs to come up.
    309             #
    310             fRc = self.waitForGuestAdditionsRunLevel(oSession, oGuest, 5 * 60 * 1000, vboxcon.AdditionsRunLevelType_Userland);
    311             if not fRc:
    312                 return (False, oTxsSession);
    313 
    314307            # Check the additionsVersion attribute. It must not be empty.
    315308            reporter.testStart('IGuest::additionsVersion');
    316309            fRc = self.testIGuest_additionsVersion(oGuest);
    317310            reporter.testDone();
    318 
     311            if not fRc:
     312                return (False, oTxsSession);
     313
     314            # Wait for the GAs to come up.
    319315            reporter.testStart('IGuest::additionsRunLevel');
    320             self.testIGuest_additionsRunLevel(oGuest, oTestVm);
     316            fRc = self.testIGuest_additionsRunLevel(oSession, oTestVm, oGuest);
    321317            reporter.testDone();
     318            if not fRc:
     319                return (False, oTxsSession);
    322320
    323321            ## @todo test IAdditionsFacilities.
     
    497495        return True;
    498496
    499     def testIGuest_additionsRunLevel(self, oGuest, oTestVm):
     497    def testIGuest_additionsRunLevel(self, oSession, oTestVm, oGuest):
    500498        """
    501499        Do run level tests.
     
    506504            eExpectedRunLevel = vboxcon.AdditionsRunLevelType_Userland;
    507505
    508         ## @todo Insert wait for the desired run level.
    509         try:
    510             iLevel = oGuest.additionsRunLevel;
    511         except:
    512             reporter.errorXcpt('Getting the additions run level failed.');
    513             return False;
    514         reporter.log('IGuest::additionsRunLevel=%s' % (iLevel,));
    515 
    516         if iLevel != eExpectedRunLevel:
    517             pass; ## @todo We really need that wait!!
    518             #reporter.error('Expected runlevel %d, found %d instead' % (eExpectedRunLevel, iLevel));
    519         return True;
    520 
     506        return self.waitForGuestAdditionsRunLevel(oSession, oGuest, 5 * 60 * 1000, eExpectedRunLevel);
    521507
    522508    def testGuestProperties(self, oSession, oTxsSession, oTestVm):
Note: See TracChangeset for help on using the changeset viewer.

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