VirtualBox

Ignore:
Timestamp:
Feb 15, 2023 2:06:04 PM (2 years ago)
Author:
vboxsync
Message:

vsheriff: More general failure reason failure for GA tests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py

    r98589 r98590  
    619619
    620620    ktReason_Add_Installer_Win_Failed                  = ( 'Additions',         'Win GA install' );
     621    ktReason_Add_ShFl                                  = ( 'Additions',         'ShFl' );
    621622    ktReason_Add_ShFl_Automount                        = ( 'Additions',         'Automounting' );
    622623    ktReason_Add_ShFl_FsPerf                           = ( 'Additions',         'FsPerf' );
     
    12321233
    12331234
     1235    ## Fallback reasons based on GA test groups.
     1236    kdGATestFallbacks = {
     1237        'Guest Control':  ktReason_Add_GstCtl,
     1238        'Shared Folders': ktReason_Add_ShFl,
     1239    };
     1240
    12341241    def investigateGATest(self, oCaseFile, oFailedResult, sResultLog):
    12351242        """
     
    12601267        elif oFailedResult.sName.find('Session w/ Guest Reboot') >= 0:
    12611268            enmReason = self.ktReason_Add_GstCtl_Session_Reboot;
    1262         elif sParentName == 'Guest Control' or oFailedResult.sName == 'Guest Control':
    1263             enmReason = self.ktReason_Add_GstCtl;
    12641269        # shared folders:
    12651270        elif sParentName == 'Shared Folders' and oFailedResult.sName == 'Automounting':
     
    12751280        if enmReason is not None:
    12761281            return oCaseFile.noteReasonForId(enmReason, oFailedResult.idTestResult);
     1282
     1283        # Generalistic fallbacks:
     1284        for sKey in self.kdGATestFallbacks:
     1285            oTmpFailedResult = oFailedResult;
     1286            while oTmpFailedResult:
     1287                if oTmpFailedResult.sName == sKey:
     1288                    return oCaseFile.noteReasonForId(self.kdGATestFallbacks[sKey], oFailedResult.idTestResult);
     1289                oTmpFailedResult = oTmpFailedResult.oParent;
    12771290
    12781291        self.vprint(u'TODO: Cannot place GA failure idTestResult=%u - %s' % (oFailedResult.idTestResult, oFailedResult.sName,));
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