VirtualBox

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


Ignore:
Timestamp:
May 24, 2019 1:20:21 PM (6 years ago)
Author:
vboxsync
Message:

vsheriff: Correctly identify GA and serial port tests and pass them to investigateVBoxVMTest. Added --testset option for targetly testing changes against a few specific testsets. Don't stop looking on ktReason_Unknown_VM_Start_Error as we might get better match when going over the hardening log, for instance.

File:
1 edited

Legend:

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

    r78717 r78726  
    172172        """ Test case classification: VirtualBox Guest Additions test. """
    173173        return self.isVBoxTest() \
    174            and self.oTestCase.sName.lower().startswith('ga\'s tests');
     174           and (   self.oTestCase.sName.lower().startswith('guest additions')
     175                or self.oTestCase.sName.lower().startswith('ga\'s tests'));
    175176
    176177    def isVBoxAPITest(self):
     
    188189        return self.isVBoxTest() \
    189190           and self.oTestCase.sName.lower().startswith('smoketest');
     191
     192    def isVBoxSerialTest(self):
     193        """ Test case classification: Smoke test. """
     194        return self.isVBoxTest() \
     195           and self.oTestCase.sName.lower().startswith('serial:');
    190196
    191197
     
    300306        oParser.add_option('--real-run-back', dest = 'fRealRun', action = 'store_true', default = False,
    301307                           help = 'Whether to commit the findings to the database. Default is a dry run.');
     308        oParser.add_option('--testset', dest = 'aidTestSets', metavar = '<id>', default = [], type = 'int', action = 'append',
     309                           help = 'Only investigate this one.  Accumulates IDs when repeated.');
    302310        oParser.add_option('-q', '--quiet', dest = 'fQuiet', action = 'store_true', default = False,
    303311                           help = 'Quiet execution');
     
    9961004        ( True,  ktReason_OSInstall_Sata_no_BM,                     'PCHS=14128/14134/8224' ),
    9971005        ( True,  ktReason_Host_DoubleFreeHeap,                      'double free or corruption' ),
    998         ( True, ktReason_Unknown_VM_Start_Error,                   'VMSetError: ' ),
    999         ( True, ktReason_Unknown_VM_Start_Error,                   'error: failed to open session for' ),
     1006        ( False, ktReason_Unknown_VM_Start_Error,                   'VMSetError: ' ),
     1007        ( False, ktReason_Unknown_VM_Start_Error,                   'error: failed to open session for' ),
    10001008        ( False, ktReason_Unknown_VM_Runtime_Error,                 'Console: VM runtime error: fatal=true' ),
    10011009    ];
     
    13771385        #
    13781386        cGot = 0;
    1379         aoTestSets = self.oTestSetLogic.fetchFailedSetsWithoutReason(cHoursBack = self.oConfig.cHoursBack, tsNow = self.tsNow);
     1387        if self.oConfig.aidTestSets is None or len(self.oConfig.aidTestSets) == 0:
     1388            aoTestSets = self.oTestSetLogic.fetchFailedSetsWithoutReason(cHoursBack = self.oConfig.cHoursBack,
     1389                                                                         tsNow = self.tsNow);
     1390        else:
     1391            aoTestSets = [self.oTestSetLogic.getById(idTestSet) for idTestSet in self.oConfig.aidTestSets];
    13801392        for oTestSet in aoTestSets:
    1381             self.dprint(u'');
    1382             self.dprint(u'reasoningFailures: Checking out test set #%u, status %s'  % ( oTestSet.idTestSet, oTestSet.enmStatus,))
     1393            self.dprint(u'----------------------------------- #%u, status %s -----------------------------------'
     1394                        % ( oTestSet.idTestSet, oTestSet.enmStatus,));
    13831395
    13841396            #
     
    14261438
    14271439            elif oCaseFile.isVBoxSmokeTest():
     1440                self.dprint(u'investigateVBoxVMTest is taking over %s.' % (oCaseFile.sLongName,));
     1441                fRc = self.investigateVBoxVMTest(oCaseFile, fSingleVM = False);
     1442
     1443            elif oCaseFile.isVBoxSerialTest():
    14281444                self.dprint(u'investigateVBoxVMTest is taking over %s.' % (oCaseFile.sLongName,));
    14291445                fRc = self.investigateVBoxVMTest(oCaseFile, fSingleVM = False);
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