VirtualBox

Changeset 57678 in vbox for trunk


Ignore:
Timestamp:
Sep 9, 2015 7:20:36 PM (9 years ago)
Author:
vboxsync
Message:

testresults.py: the 'unit' attribute can be empty (RTTESTUNIT_NONE).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/core/testresults.py

    r56810 r57678  
    519519    ksResultsGroupingTypeTestCase   = 'ResultsGroupingTypeTestCase';
    520520    ksResultsGroupingTypeSchedGroup = 'ResultsGroupingTypeSchedGroup';
    521 
    522     #kdResultGroupingMapOld = {
    523     #    ksResultsGroupingTypeNone:       ('TestSets',            None,                      None),
    524     #    ksResultsGroupingTypeTestGroup:  ('TestSets',            'TestSets.idTestGroup',    None),
    525     #    ksResultsGroupingTypeTestBox:    ('TestSets',            'TestSets.idTestBox',      None),
    526     #    ksResultsGroupingTypeTestCase:   ('TestSets',            'TestSets.idTestCase',     None),
    527     #    ksResultsGroupingTypeBuildRev:   ('TestSets, Builds',    'Builds.iRevision',
    528     #                                      ' AND Builds.idBuild      = TestSets.idBuild'
    529     #                                      ' AND Builds.tsExpire     > TestSets.tsCreated'
    530     #                                      ' AND Builds.tsEffective <= TestSets.tsCreated' ),
    531     #    ksResultsGroupingTypeSchedGroup: ('TestSets, TestBoxes', 'TestBoxes.idSchedGroup',
    532     #                                      ' AND TestSets.idGenTestBox = TestBoxes.idGenTestBox'),
    533     #};
    534521
    535522    ## @name Result sorting options.
     
    14921479        # Validate string attributes.
    14931480        for sAttr in [ 'name', 'unit', 'text' ]:
    1494             if sAttr in dAttribs and len(dAttribs[sAttr]) == 0:
     1481            if sAttr in dAttribs and (len(dAttribs[sAttr]) == 0 or sAttr == 'unit'):
    14951482                return 'Element %s has an empty %s attribute value.' % (sName, sAttr,);
    14961483
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