VirtualBox

Changeset 61460 in vbox


Ignore:
Timestamp:
Jun 4, 2016 12:19:16 AM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
107787
Message:

investigateVBoxUnitTest: bugfix for nested failures (we only care about unit test level).

File:
1 edited

Legend:

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

    r61454 r61460  
    578578            elif oFailedResult.oParent is not None:
    579579                # Get the 2nd level node because that's where we'll find the unit test name.
    580                 o2ndLevel = oFailedResult;
    581                 while o2ndLevel.oParent.oParent is not None:
    582                     o2ndLevel = o2ndLevel.oParent;
     580                while oFailedResult.oParent.oParent is not None:
     581                    oFailedResult = oFailedResult.oParent;
    583582
    584583                # Only report a failure once.
    585                 if o2ndLevel.idTestResult not in oCaseFile.dReasonForResultId:
    586                     sKey = o2ndLevel.sName;
     584                if oFailedResult.idTestResult not in oCaseFile.dReasonForResultId:
     585                    sKey = oFailedResult.sName;
    587586                    if sKey.startswith('testcase/'):
    588587                        sKey = sKey[9:];
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