diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-19 12:28:53 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-20 08:08:41 +0000 |
commit | eaac96e205f43cc78623491cb3a1ec06636b1328 (patch) | |
tree | 535f1240d5ae91db6c17411db6f62b4ffc5e3228 /zephyr/test/drivers/src/ps8xxx.c | |
parent | 56163699ea38cbfb64916b629327ca001402a7e0 (diff) | |
download | chrome-ec-eaac96e205f43cc78623491cb3a1ec06636b1328.tar.gz |
zephyr: tests: Run test_ps8815_set_cc before tasks
The test_ps8815_set_cc except delay on the role control register
change. During delay the PD task can run and change expected state. To
prevent that whole test is run before tasks.
BUG=b:239513456
TEST=zmake -D test test-drivers
BRANCH=None
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: Ic51da7210543917737e316433a32e4837160c214
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3773856
Tested-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Al Semjonovs <asemjonovs@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
Diffstat (limited to 'zephyr/test/drivers/src/ps8xxx.c')
-rw-r--r-- | zephyr/test/drivers/src/ps8xxx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zephyr/test/drivers/src/ps8xxx.c b/zephyr/test/drivers/src/ps8xxx.c index dd6f662bfe..7a37539c8e 100644 --- a/zephyr/test/drivers/src/ps8xxx.c +++ b/zephyr/test/drivers/src/ps8xxx.c @@ -190,7 +190,7 @@ static void check_ps8815_set_cc(enum tcpc_rp_value rp, enum tcpc_cc_pull cc, } /** Test PS8815 set cc and device specific workarounds */ -ZTEST(ps8815, test_ps8815_set_cc) +ZTEST(ps8815_no_tasks, test_ps8815_set_cc) { const struct emul *ps8xxx_emul = emul_get_binding(PS8XXX_EMUL_LABEL); int64_t start_time; @@ -1263,3 +1263,6 @@ ZTEST_SUITE(ps8805, drivers_predicate_post_main, NULL, ps8805_before, ZTEST_SUITE(ps8815, drivers_predicate_post_main, NULL, ps8815_before, ps8815_after, NULL); + +ZTEST_SUITE(ps8815_no_tasks, drivers_predicate_pre_main, NULL, ps8815_before, + ps8815_after, NULL); |