ztest: Fix logic for SUITE_SKIP
When ZTEST setup fails z_assume, we should mark all tests within suite as skipped. Signed-off-by: Al Semjonovs <asemjonovs@google.com>
This commit is contained in:
parent
5ff80ef2b1
commit
4a0040f346
1 changed files with 1 additions and 1 deletions
|
@ -458,7 +458,7 @@ static int run_test(struct ztest_suite_node *suite, struct ztest_unit_test *test
|
|||
ret |= cleanup_test(test);
|
||||
}
|
||||
|
||||
if (test_result == ZTEST_RESULT_SKIP) {
|
||||
if (test_result == ZTEST_RESULT_SKIP || test_result == ZTEST_RESULT_SUITE_SKIP) {
|
||||
Z_TC_END_RESULT(TC_SKIP, test->name);
|
||||
} else {
|
||||
Z_TC_END_RESULT(ret, test->name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue