ana1Tests.testUtilities.filterBenchmarks

filterBenchmarks(testDictList, filterType, valuesList, condition='or')[source]

filter benchmarks according to characteristic

Parameters
  • testDictList (list) – list of benchmark dictionaries

  • filterType (str) – key which is used for filtering (options: TAGS, TYPE)

  • valuesList (list) – list of values used for filtering

  • condition (str) – if multiple values given in valuesList - if ‘or’ then all test dictionaries are returned that have either of the values, if ‘and’ then only those are returned that feature both values

Returns

testList – list of all the benchmark dicionaries that meet filter criterion

Return type

list