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:
Al Semjonovs 2022-08-01 15:05:52 -06:00 committed by Anas Nashif
commit 4a0040f346

View file

@ -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);