summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Semjonovs <asemjonovs@google.com>2022-07-27 08:50:52 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-03 21:24:23 +0000
commit52b676ffd7f8665b01f37ebb515b9ba911561fc9 (patch)
tree3722585939fd69687e63d6eda6404afd46505399
parent9d346066594745ad1ce465890f60b5db0e6615a1 (diff)
downloadchrome-ec-52b676ffd7f8665b01f37ebb515b9ba911561fc9.tar.gz
zephyr: Fix listing of test cases
Use correct ZTEST API so test cases can be listed BUG=b:240364238 BRANCH=NONE TEST=./zephyr.exe -list Signed-off-by: Al Semjonovs <asemjonovs@google.com> Change-Id: If3b603ab64421da558228e67a907039a1674ba0b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3789128 Reviewed-by: Yuval Peress <peress@google.com>
-rw-r--r--zephyr/test/drivers/common/src/main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/zephyr/test/drivers/common/src/main.c b/zephyr/test/drivers/common/src/main.c
index 319d42e3ad..d044e79763 100644
--- a/zephyr/test/drivers/common/src/main.c
+++ b/zephyr/test/drivers/common/src/main.c
@@ -25,14 +25,11 @@ void test_main(void)
};
/* Run all the suites that depend on main not being called yet */
- ztest_run_test_suites(&state);
+ ztest_run_all(&state);
ec_app_main();
state.ec_app_main_run = true;
/* Run all the suites that depend on main being called */
- ztest_run_test_suites(&state);
-
- /* Check that every suite ran */
- ztest_verify_all_test_suites_ran();
+ ztest_run_all(&state);
}