diff options
author | Michal Simek <michal.simek@xilinx.com> | 2022-03-07 16:48:17 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2022-03-14 15:22:57 +0100 |
commit | 57d820da97a587a5301fbfe9536efe54bda64a63 (patch) | |
tree | 1e798673e794efa4c1153b247c24abc430e04101 /test | |
parent | a744a284e35420077b0c838598eb24c98710412a (diff) | |
download | u-boot-57d820da97a587a5301fbfe9536efe54bda64a63.tar.gz |
cmd: test: pinmux: Do not check all empty spaces
There is really no value to check empty spaces. That's why use
ut_assert_nextlinen() instead of ut_assert_nextline().
This change ensures that PINMUX_SIZE can be increased without changing
tests.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/03aecf4c67ec8d72bf2a90baf1516fc5bd300fe0.1646668094.git.michal.simek@xilinx.com
Diffstat (limited to 'test')
-rw-r--r-- | test/cmd/pinmux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cmd/pinmux.c b/test/cmd/pinmux.c index 8ae807b537..ba338b8dce 100644 --- a/test/cmd/pinmux.c +++ b/test/cmd/pinmux.c @@ -16,18 +16,18 @@ static int dm_test_cmd_pinmux_status_pinname(struct unit_test_state *uts) /* Test that 'pinmux status <pinname>' displays the selected pin. */ console_record_reset(); run_command("pinmux status a5", 0); - ut_assert_nextline("a5 : gpio input . "); + ut_assert_nextlinen("a5 : gpio input ."); ut_assert_console_end(); console_record_reset(); run_command("pinmux status P7", 0); - ut_assert_nextline("P7 : GPIO2 bias-pull-down input-enable. "); + ut_assert_nextlinen("P7 : GPIO2 bias-pull-down input-enable."); ut_assert_console_end(); console_record_reset(); run_command("pinmux status P9", 0); - ut_assert_nextline("single-pinctrl pinctrl-single-no-width: missing register width"); - ut_assert_nextline("P9 not found"); + ut_assert_nextlinen("single-pinctrl pinctrl-single-no-width: missing register width"); + ut_assert_nextlinen("P9 not found"); ut_assert_console_end(); return 0; |