VirtualBox

Changeset 83764 in vbox


Ignore:
Timestamp:
Apr 17, 2020 3:23:51 PM (5 years ago)
Author:
vboxsync
Message:

Validation Kit/Guest Additions: Skip following sub tests / modules if installing Guest Additions failed; no point in wasting testing time.

File:
1 edited

Legend:

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

    r83757 r83764  
    170170            reporter.testDone(fSkip);
    171171
    172             fSkip = 'guestprops' not in self.asTests;
    173             reporter.testStart('Guest Properties');
    174             if not fSkip:
    175                 fRc = self.testGuestProperties(oSession, oTxsSession, oTestVm) and fRc;
    176             reporter.testDone(fSkip);
    177 
    178             fSkip = 'guestcontrol' not in self.asTests;
    179             reporter.testStart('Guest Control');
    180             if not fSkip:
    181                 fRc, oTxsSession = self.aoSubTstDrvs[0].testIt(oTestVm, oSession, oTxsSession);
    182             reporter.testDone(fSkip);
    183 
    184             fSkip = 'sharedfolders' not in self.asTests and self.fpApiVer >= 6.0;
    185             reporter.testStart('Shared Folders');
    186             if not fSkip:
    187                 fRc, oTxsSession = self.aoSubTstDrvs[1].testIt(oTestVm, oSession, oTxsSession);
    188             reporter.testDone(fSkip or fRc is None);
     172            if  not fSkip \
     173            and not fRc:
     174                reporter.log('Skipping following tests as Guest Additions were not installed successfully');
     175            else:
     176                fSkip = 'guestprops' not in self.asTests;
     177                reporter.testStart('Guest Properties');
     178                if not fSkip:
     179                    fRc = self.testGuestProperties(oSession, oTxsSession, oTestVm) and fRc;
     180                reporter.testDone(fSkip);
     181
     182                fSkip = 'guestcontrol' not in self.asTests;
     183                reporter.testStart('Guest Control');
     184                if not fSkip:
     185                    fRc, oTxsSession = self.aoSubTstDrvs[0].testIt(oTestVm, oSession, oTxsSession);
     186                reporter.testDone(fSkip);
     187
     188                fSkip = 'sharedfolders' not in self.asTests and self.fpApiVer >= 6.0;
     189                reporter.testStart('Shared Folders');
     190                if not fSkip:
     191                    fRc, oTxsSession = self.aoSubTstDrvs[1].testIt(oTestVm, oSession, oTxsSession);
     192                reporter.testDone(fSkip or fRc is None);
    189193
    190194            ## @todo Save and restore test.
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