diff options
Diffstat (limited to 'zephyr/test/drivers/chargesplash/src/chargesplash.c')
-rw-r--r-- | zephyr/test/drivers/chargesplash/src/chargesplash.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/zephyr/test/drivers/chargesplash/src/chargesplash.c b/zephyr/test/drivers/chargesplash/src/chargesplash.c index 27b3678bd8..9e5bf17019 100644 --- a/zephyr/test/drivers/chargesplash/src/chargesplash.c +++ b/zephyr/test/drivers/chargesplash/src/chargesplash.c @@ -3,6 +3,14 @@ * found in the LICENSE file. */ +#include <zephyr/kernel.h> +#include <stdbool.h> +#include <zephyr/drivers/gpio/gpio_emul.h> +#include <zephyr/shell/shell.h> +#include <zephyr/shell/shell_uart.h> +#include <zephyr/sys/__assert.h> +#include <zephyr/ztest.h> + #include "chipset.h" #include "config.h" #include "ec_commands.h" @@ -10,18 +18,9 @@ #include "hooks.h" #include "host_command.h" #include "lid_switch.h" +#include "timer.h" #include "test/drivers/test_state.h" #include "test/drivers/utils.h" -#include "timer.h" - -#include <stdbool.h> - -#include <zephyr/drivers/gpio/gpio_emul.h> -#include <zephyr/kernel.h> -#include <zephyr/shell/shell.h> -#include <zephyr/shell/shell_uart.h> -#include <zephyr/sys/__assert.h> -#include <zephyr/ztest.h> /* Do a chargesplash host cmd */ static enum ec_status @@ -86,7 +85,7 @@ static void set_lid(bool open, bool inhibit_boot) "inhibit_boot should not be used with a lid close"); } - zassert_ok(gpio_emul_input_set(lid_switch_dev, GPIO_LID_OPEN_EC_PORT, + zassume_ok(gpio_emul_input_set(lid_switch_dev, GPIO_LID_OPEN_EC_PORT, open), "Failed to set lid switch GPIO"); @@ -124,7 +123,7 @@ static void reset_state(void *unused) set_ac_enabled(false); } - zassert_ok(shell_execute_cmd(get_ec_shell(), "chargesplash reset"), + zassume_ok(shell_execute_cmd(get_ec_shell(), "chargesplash reset"), "'chargesplash reset' shell command failed"); } |