test framework: method to get cache modes without given trait
Signed-off-by: Rutkowski, Adam J <adam.j.rutkowski@intel.com>
This commit is contained in:
parent
2da9753a10
commit
d6eebc2cc3
@ -60,6 +60,12 @@ class CacheMode(Enum):
|
||||
m for m in CacheMode if all(map(lambda t: t in CacheMode.get_traits(m), flags))
|
||||
]
|
||||
|
||||
@staticmethod
|
||||
def without_traits(flags: CacheModeTrait):
|
||||
return [
|
||||
m for m in CacheMode if not any(map(lambda t: t in CacheMode.get_traits(m), flags))
|
||||
]
|
||||
|
||||
@staticmethod
|
||||
def with_any_trait(flags: CacheModeTrait):
|
||||
return [
|
||||
|
Loading…
Reference in New Issue
Block a user