diff options
Diffstat (limited to 'zephyr/test/drivers/default/src/power_common.c')
-rw-r--r-- | zephyr/test/drivers/default/src/power_common.c | 42 |
1 files changed, 15 insertions, 27 deletions
diff --git a/zephyr/test/drivers/default/src/power_common.c b/zephyr/test/drivers/default/src/power_common.c index 2b8ba4ac88..f96fed9f05 100644 --- a/zephyr/test/drivers/default/src/power_common.c +++ b/zephyr/test/drivers/default/src/power_common.c @@ -3,30 +3,31 @@ * found in the LICENSE file. */ -#include "battery.h" -#include "battery_smart.h" +#include <string.h> +#include <zephyr/ztest.h> +#include <zephyr/drivers/gpio.h> +#include <zephyr/drivers/gpio/gpio_emul.h> +#include <zephyr/shell/shell.h> +#include <zephyr/shell/shell_dummy.h> +#include <zephyr/shell/shell_uart.h> + #include "chipset.h" #include "common.h" -#include "ec_tasks.h" -#include "emul/emul_common_i2c.h" -#include "emul/emul_smart_battery.h" #include "extpower.h" #include "hooks.h" #include "host_command.h" #include "power.h" -#include "task.h" #include "test/drivers/stubs.h" +#include "task.h" +#include "ec_tasks.h" #include "test/drivers/test_state.h" -#include "test/drivers/utils.h" -#include <string.h> +#include "emul/emul_common_i2c.h" +#include "emul/emul_smart_battery.h" -#include <zephyr/drivers/gpio.h> -#include <zephyr/drivers/gpio/gpio_emul.h> -#include <zephyr/shell/shell.h> -#include <zephyr/shell/shell_dummy.h> -#include <zephyr/shell/shell_uart.h> -#include <zephyr/ztest.h> +#include "battery.h" +#include "battery_smart.h" +#include "test/drivers/utils.h" #define BATTERY_NODE DT_NODELABEL(battery) @@ -487,19 +488,6 @@ ZTEST(power_common, power_console_cmd) } /** - * Test powerinfo console command - */ -ZTEST_USER(power_common, powerinfo_console_cmd) -{ - char expected_buffer[32]; - - snprintf(expected_buffer, sizeof(expected_buffer), "power state %d", - power_get_state()); - - CHECK_CONSOLE_CMD("powerinfo", expected_buffer, EC_SUCCESS); -} - -/** * Common setup for hibernation delay tests. Smart discharge zone is setup, * battery is set in safe zone (which trigger hibernation), power state is * set to G3 and AC is disabled. system_hibernate mock is reset. |