diff options
| author | Simon Glass <[email protected]> | 2023-11-29 10:31:19 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-12-20 10:46:54 -0500 |
| commit | 921f63e5723880bbbaf65429564e5638b7bbd002 (patch) | |
| tree | f8738614700e43d3d3922b3e41c15c5f5426bb17 /test | |
| parent | 7481632b192f61b5bcb028c885a460d8b9c2731c (diff) | |
bootflow: Allow setting a cmdline arg with no value
This is supposed to be supported by the 'bootflow cmd' command, at
least according to the help. There is a 'bootflow cmd clear' but it is
often more intuitive to use 'bootcmd cmd set' with an empty value.
Update the command to pass BOOTFLOWCL_EMPTY in this case.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'test')
| -rw-r--r-- | test/boot/bootflow.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/boot/bootflow.c b/test/boot/bootflow.c index f3e5a839da4..a9b555c7794 100644 --- a/test/boot/bootflow.c +++ b/test/boot/bootflow.c @@ -1095,6 +1095,10 @@ static int bootflow_cmdline(struct unit_test_state *uts) ut_asserteq(0, run_command("bootflow cmdline get mary", 0)); ut_assert_nextline_empty(); + ut_asserteq(0, run_command("bootflow cmdline set mary abc", 0)); + ut_asserteq(0, run_command("bootflow cmdline set mary", 0)); + ut_assert_nextline_empty(); + ut_assert_console_end(); return 0; |
