VirtualBox

Ignore:
Timestamp:
Feb 23, 2017 4:27:28 PM (8 years ago)
Author:
vboxsync
Message:

testresults.py: _getWhereWorker fix for TestCaseArgs.sSubName being NULL. Caused smoketests to be excluded with any other name based exclusion.

File:
1 edited

Legend:

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

    r65496 r65864  
    866866                    sQuery += '%s   AND %s (' % (sExtraIndent, sNot,);
    867867                    if len(sLike) <= 3: # do word matching for small substrings (hw, np, smp, uni, ++).
    868                         sQuery += 'TestCases.sName ~ \'.*\\y%s\\y.*\' OR TestCaseArgs.sSubName ~ \'.*\\y%s\\y.*\')\n' \
     868                        sQuery += 'TestCases.sName ~ \'.*\\y%s\\y.*\' ' \
     869                                  'OR COALESCE(TestCaseArgs.sSubName, \'\') ~ \'.*\\y%s\\y.*\')\n' \
    869870                                % ( sLike, sLike,);
    870871                    else:
    871                         sQuery += 'TestCases.sName LIKE \'%%%s%%\' OR TestCaseArgs.sSubName LIKE \'%%%s%%\')\n' \
     872                        sQuery += 'TestCases.sName LIKE \'%%%s%%\' ' \
     873                                  'OR COALESCE(TestCaseArgs.sSubName, \'\') LIKE \'%%%s%%\')\n' \
    872874                                % ( sLike, sLike,);
    873875            elif iCrit == self.kiTestboxMisc:
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