mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
cmd: pinmux: update result of do_status
Update the result of do_status and always returns a CMD_RET_ value (-ENOSYS was a possible result of show_pinmux). This patch also adds pincontrol name in error messages (dev->name) and treats correctly the status sub command when pin-controller device is not selected. Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
9e6da34c72
commit
4c60fd993a
3 changed files with 20 additions and 17 deletions
|
@ -13,9 +13,9 @@ def test_pinmux_usage_1(u_boot_console):
|
|||
@pytest.mark.buildconfigspec('cmd_pinmux')
|
||||
def test_pinmux_usage_2(u_boot_console):
|
||||
"""Test that 'pinmux status' executed without previous "pinmux dev"
|
||||
command displays pinmux usage."""
|
||||
command displays error message."""
|
||||
output = u_boot_console.run_command('pinmux status')
|
||||
assert 'Usage:' in output
|
||||
assert 'pin-controller device not selected' in output
|
||||
|
||||
@pytest.mark.buildconfigspec('cmd_pinmux')
|
||||
@pytest.mark.boardspec('sandbox')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue