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))
|
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
|
@staticmethod
|
||||||
def with_any_trait(flags: CacheModeTrait):
|
def with_any_trait(flags: CacheModeTrait):
|
||||||
return [
|
return [
|
||||||
|
Loading…
Reference in New Issue
Block a user