VirtualBox

Ignore:
Timestamp:
May 22, 2017 9:33:20 AM (8 years ago)
Author:
vboxsync
Message:

ReCreateQueueData:deepTestGroupSort: more error diagnotics

File:
1 edited

Legend:

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

    r66998 r66999  
    247247        #
    248248        iGrpPrio = self.aoTestGroups[0].iSchedPriority;
    249         for oTestGroup in self.aoTestGroups:
     249        for iTestGroup, oTestGroup in enumerate(self.aoTestGroups):
    250250            if oTestGroup.iSchedPriority > iGrpPrio:
    251                 raise TMExceptionBase('Incorrectly sorted testgroups returned by database.');
     251                raise TMExceptionBase('Incorrectly sorted testgroups returned by database: iTestGroup=%s prio=%s %s'
     252                                      % ( iTestGroup, iGrpPrio,
     253                                          ', '.join(['(%s: %s)' % (oCur.idTestGroup, oCur.iSchedPriority)
     254                                                     for oCur in oTestGroup.aoTestCases]), ) );
    252255            iGrpPrio = oTestGroup.iSchedPriority;
    253256
     
    258261                        raise TMExceptionBase('Incorrectly sorted testcases returned by database: i=%s prio=%s idGrp=%s %s'
    259262                                              % ( iTestCase, iTstPrio, oTestGroup.idTestGroup,
    260                                                   ','.join(['(%s: %s)' % (oCur.idTestCase, oCur.iSchedPriority)
     263                                                  ', '.join(['(%s: %s)' % (oCur.idTestCase, oCur.iSchedPriority)
    261264                                                            for oCur in oTestGroup.aoTestCases]),));
    262265
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