diff options
author | Tomasz Michalec <tm@semihalf.com> | 2022-07-19 17:05:35 +0200 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-19 16:53:07 +0000 |
commit | 3f497875d8f0e5f19962f22ab78157aa3a0c2e85 (patch) | |
tree | 96adc11a9aa5a3dff2efd52e25664e7404f100f6 | |
parent | 4869e6f485ff4d1eb44d5c3148f0e6b7167a1148 (diff) | |
download | chrome-ec-3f497875d8f0e5f19962f22ab78157aa3a0c2e85.tar.gz |
zephyr: tests: Clear PD disabled by policy flag
While testing pd console command, PD_DISABLED_BY_POLICY flag is set.
Because of that some other tests may fail. Clear PD_DISABLE_BY_POLICY
flag after pd console command tests.
BUG=b:233102631
TEST=zmake -D test test-drivers
BRANCH=None
Signed-off-by: Tomasz Michalec <tm@semihalf.com>
Change-Id: I1cb898f1f680238eb4e14dc640690a8412806b27
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3773853
Tested-by: Tomasz Michalec <tmichalec@google.com>
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Commit-Queue: Tomasz Michalec <tmichalec@google.com>
-rw-r--r-- | zephyr/test/drivers/src/console_cmd/usb_pd_console.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/zephyr/test/drivers/src/console_cmd/usb_pd_console.c b/zephyr/test/drivers/src/console_cmd/usb_pd_console.c index 4902591c67..36f3402378 100644 --- a/zephyr/test/drivers/src/console_cmd/usb_pd_console.c +++ b/zephyr/test/drivers/src/console_cmd/usb_pd_console.c @@ -20,6 +20,9 @@ static void console_cmd_usb_pd_after(void *fixture) k_sleep(K_SECONDS(1)); test_set_chipset_to_s0(); k_sleep(K_SECONDS(10)); + + /* Keep port used by testsuite enabled (default state) */ + pd_comm_enable(0, 1); } ZTEST_SUITE(console_cmd_usb_pd, drivers_predicate_post_main, NULL, NULL, |