VirtualBox

Changeset 98536 in vbox


Ignore:
Timestamp:
Feb 10, 2023 5:39:28 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155813
Message:

testmanager/status.py: Dropping unused cHoursBack argument to the select as its %s was dropped by r154325. bugref:10364

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testmanager/cgi/status.py

    r98103 r98536  
    284284        # Get the data.
    285285        #
    286         # Note! We're not joining on TestBoxesWithStrings.idTestBox =
    287         #       TestSets.idGenTestBox here because of indexes.  This is
    288         #       also more consistent with the rest of the query.
     286        # - The first part of the select is about fetching all finished tests
     287        #   for last cHoursBack hours
     288        #
     289        # - The second part is fetching all tests which isn't done. (Both old
     290        #   (running more than cHoursBack) and fresh (less than cHoursBack) ones
     291        #   because we want to know if there's a hanging tests together with
     292        #   currently running).
     293        #
     294        # - There are also testsets without status at all, likely because disabled
     295        #   testboxes still have an assigned testsets.
     296        #
     297        # Note! We're not joining on TestBoxesWithStrings.idTestBox = TestSets.idGenTestBox
     298        #       here because of indexes.  This is also more consistent with the
     299        #       rest of the query.
     300        #
    289301        # Note! The original SQL is slow because of the 'OR TestSets.tsDone'
    290302        #       part, using AND and UNION is significatly faster because
     
    295307            return False;
    296308
    297         #
    298         # some comments regarding select below:
    299         # first part is about fetching all finished tests for last cHoursBack hours
    300         # second part is fetching all tests which isn't done
    301         # both old (running more than cHoursBack) and fresh (less than cHoursBack) ones
    302         # 'cause we want to know if there's a hanging tests together with currently running
    303         #
    304         # there's also testsets without status at all, likely because disabled testboxes still have an assigned testsets
    305         #
    306309        oDb.execute('''
    307310(   SELECT  TestBoxesWithStrings.sName,
     
    350353      AND   SchedGroupNames.idTestBox = TestBoxesWithStrings.idTestBox
    351354)
    352 ''', (cHoursBack, cHoursBack,));
     355''', (cHoursBack, ));
    353356
    354357
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