VirtualBox

Ignore:
Timestamp:
Sep 9, 2015 8:16:35 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102583
Message:

testresults.py: the 'unit' attribute can be empty (RTTESTUNIT_NONE) - 2nd try.

File:
1 edited

Legend:

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

    r57678 r57680  
    14781478
    14791479        # Validate string attributes.
    1480         for sAttr in [ 'name', 'unit', 'text' ]:
    1481             if sAttr in dAttribs and (len(dAttribs[sAttr]) == 0 or sAttr == 'unit'):
     1480        for sAttr in [ 'name', 'text' ]: # 'unit' can be zero length.
     1481            if sAttr in dAttribs and len(dAttribs[sAttr]) == 0:
    14821482                return 'Element %s has an empty %s attribute value.' % (sName, sAttr,);
    14831483
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