sanitycheck: tests: simplify filter testcase
use a loop instead of all() to make the test easier to debug. remove the default platform test, as this is now being filtered differently in the code. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
ad70a69f85
commit
a44268f4fb
1 changed files with 3 additions and 2 deletions
|
@ -153,7 +153,6 @@ TESTDATA_PART1 = [
|
|||
("None", "None", "env", ['BSIM_OUT_PATH', 'demo_env'], "Environment (BSIM_OUT_PATH, demo_env) not satisfied"),
|
||||
("build_on_all", True, None, None, "Platform is excluded on command line."),
|
||||
(None, None, "supported_toolchains", ['gcc'], "Not supported by the toolchain"),
|
||||
(None, None, None, None, "Not a default test platform")
|
||||
]
|
||||
|
||||
|
||||
|
@ -218,7 +217,9 @@ def test_apply_filters_part1(class_testsuite, all_testcases_dict, platforms_list
|
|||
else:
|
||||
discards = class_testsuite.apply_filters(exclude_platform=['demo_board_1'],
|
||||
platform=['demo_board_2'])
|
||||
assert all(x in list(discards.values()) for x in [expected_discards])
|
||||
|
||||
for x in [expected_discards]:
|
||||
assert x in discards.values()
|
||||
|
||||
TESTDATA_PART2 = [
|
||||
("runnable", "True", "Not runnable on device"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue