Skip to content

Commit

Permalink
Merge 8cf5aeb into ee3bb15
Browse files Browse the repository at this point in the history
  • Loading branch information
osalyk committed Aug 7, 2023
2 parents ee3bb15 + 8cf5aeb commit 0beb18f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/test/unittest/granularity.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2019-2022, Intel Corporation
# Copyright 2019-2023, Intel Corporation
#

"""Granularity context classes and utilities"""
Expand Down Expand Up @@ -156,9 +156,9 @@ def filter(cls, config, msg, tc):
if req_gran == Non:
return [Non(**kwargs), ]

if req_gran == _CACHELINE_OR_LESS:
if req_gran == [_CACHELINE_OR_LESS]:
tmp_req_gran = [Byte, CacheLine]
elif req_gran == _PAGE_OR_LESS:
elif req_gran == [_PAGE_OR_LESS]:
tmp_req_gran = [Byte, CacheLine, Page]
elif req_gran == [ctx.Any, ]:
tmp_req_gran = ctx.Any.get(conf_defined)
Expand All @@ -169,8 +169,8 @@ def filter(cls, config, msg, tc):

kwargs['tc_dirname'] = tc.tc_dirname

if len(filtered) > 1 and req_gran == _CACHELINE_OR_LESS or \
req_gran == _PAGE_OR_LESS:
if len(filtered) > 1 and req_gran == [_CACHELINE_OR_LESS] or \
req_gran == [_PAGE_OR_LESS]:

def order_by_smallest(elem):
ordered = [Byte, CacheLine, Page]
Expand Down

0 comments on commit 0beb18f

Please sign in to comment.