summaryrefslogtreecommitdiff
path: root/zephyr/test/drivers/host_cmd/src/usb_pd_control.c
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/test/drivers/host_cmd/src/usb_pd_control.c')
-rw-r--r--zephyr/test/drivers/host_cmd/src/usb_pd_control.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/zephyr/test/drivers/host_cmd/src/usb_pd_control.c b/zephyr/test/drivers/host_cmd/src/usb_pd_control.c
index f926c2b7ca..c439141da9 100644
--- a/zephyr/test/drivers/host_cmd/src/usb_pd_control.c
+++ b/zephyr/test/drivers/host_cmd/src/usb_pd_control.c
@@ -3,6 +3,9 @@
* found in the LICENSE file.
*/
+#include <zephyr/shell/shell.h>
+#include <zephyr/ztest.h>
+
#include "console.h"
#include "ec_commands.h"
#include "emul/emul_isl923x.h"
@@ -13,9 +16,6 @@
#include "test/drivers/test_state.h"
#include "test/drivers/utils.h"
-#include <zephyr/shell/shell.h>
-#include <zephyr/ztest.h>
-
#define TEST_PORT USBC_PORT_C0
#define BAD_PORT 42
@@ -99,7 +99,7 @@ ZTEST_USER(host_cmd_usb_pd_control, test_bad_index)
{
struct ec_response_usb_pd_control_v2 response;
- zassert_true(board_get_usb_pd_port_count() < BAD_PORT,
+ zassume_true(board_get_usb_pd_port_count() < BAD_PORT,
"Intended bad port exists");
zassert_equal(run_usb_pd_control(BAD_PORT, &response),
EC_RES_INVALID_PARAM,
@@ -130,7 +130,7 @@ static void host_cmd_usb_pd_control_before(void *data)
ARG_UNUSED(data);
/* Assume we have at least one USB-C port */
- zassert_true(board_get_usb_pd_port_count() > 0,
+ zassume_true(board_get_usb_pd_port_count() > 0,
"Insufficient TCPCs found");
/* Set the system into S0, since the AP would drive these commands */