VirtualBox

Changeset 67002 in vbox for trunk/src/VBox


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

schedgroup.py: iSchedPriority sorting fixes, deepTestGroupSort wants descending order.

File:
1 edited

Legend:

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

    r65980 r67002  
    724724
    725725        Returns an array of SchedGroupMemberDataEx instances (sorted by
    726         priority and idTestGroup).  May raise exception DB error.
     726        priority (descending) and idTestGroup).  May raise exception DB error.
    727727        """
    728728
     
    734734                              '     AND TestGroups.idTestGroup         = SchedGroupMembers.idTestGroup\n'
    735735                              '     AND TestGroups.tsExpire            = \'infinity\'::TIMESTAMP\n'
    736                               'ORDER BY SchedGroupMembers.iSchedPriority, SchedGroupMembers.idTestGroup\n'
     736                              'ORDER BY SchedGroupMembers.iSchedPriority DESC, SchedGroupMembers.idTestGroup\n'
    737737                              , (idSchedGroup,));
    738738        else:
     
    757757        Gets the enabled testcases w/ testgroup+priority for the given scheduling group.
    758758
    759         Returns an array TestCaseData instance (group id, testcase priority and
    760         testcase ids) with an extra iSchedPriority member.
     759        Returns an array of TestCaseData instances (ordered by group id, descending
     760        testcase priority, and testcase IDs) with an extra iSchedPriority member.
    761761        May raise exception on DB error or if the result exceeds cMax.
    762762        """
     
    773773                          '     AND TestCases.tsExpire             = \'infinity\'::TIMESTAMP\n'
    774774                          '     AND TestCases.fEnabled             = TRUE\n'
    775                           'ORDER BY TestGroupMembers.idTestGroup, TestGroupMembers.iSchedPriority, TestCases.idTestCase\n'
     775                          'ORDER BY TestGroupMembers.idTestGroup, TestGroupMembers.iSchedPriority DESC, TestCases.idTestCase\n'
    776776                          , (idSchedGroup,));
    777777
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