VirtualBox

Ignore:
Timestamp:
Mar 24, 2020 2:46:06 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136601
Message:

TestManager/SchedQueue: Fixed various validation issues with the testbox-in-sched-group stuff. Added change log to the scheduling queue details page.

File:
1 edited

Legend:

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

    r83364 r83384  
    5959    ksParam_iSchedPriority      = 'TestBoxInSchedGroup_iSchedPriority';
    6060
    61     kasAllowNullAttributes      = [ 'idTestBox', 'tsEffective', 'tsExpire', 'uidAuthor', ]
     61    kasAllowNullAttributes      = [ 'tsEffective', 'tsExpire', 'uidAuthor', ]
    6262
    6363    kiMin_iSchedPriority        = 0;
     
    858858        if not aiSortColumns:
    859859            aiSortColumns = [self.kiSortColumn_sName,];
     860        asSortColumns = [self.kdSortColumnMap[i] for i in aiSortColumns];
     861        asSortColumns.append('TestBoxesInSchedGroups.idTestBox');
    860862
    861863        if tsNow is None:
     
    869871WHERE   TestBoxesInSchedGroups.idSchedGroup = %s
    870872    AND TestBoxesInSchedGroups.tsExpire     = 'infinity'::TIMESTAMP
    871 ORDER BY ''' + ', '.join([self.kdSortColumnMap[i] for i in aiSortColumns]) + '''
    872 ''', (idSchedGroup, ));
     873ORDER BY ''' + ', '.join(asSortColumns), (idSchedGroup, ));
    873874        else:
    874875            self._oDb.execute('''
     
    881882                    AND TestBoxesWithStrings.tsEffective <= %s
    882883WHERE   TestBoxesInSchedGroups.idSchedGroup = %s
    883     AND TestBoxesInSchedGroups.tsExpire     > %
    884     AND TestBoxesInSchedGroups.tsEffective <= %
    885 ORDER BY ''' + ', '.join([self.kdSortColumnMap[i] for i in aiSortColumns]) + '''
    886 ''', (tsNow, tsNow, idSchedGroup, tsNow, tsNow, ));
     884    AND TestBoxesInSchedGroups.tsExpire     > %s
     885    AND TestBoxesInSchedGroups.tsEffective <= %s
     886ORDER BY ''' + ', '.join(asSortColumns), (tsNow, tsNow, idSchedGroup, tsNow, tsNow, ));
    887887
    888888        aoRows = [];
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