diff options
| author | Tom Rini <trini@konsulko.com> | 2023-12-20 16:00:22 -0500 |
|---|---|---|
| committer | Tom Rini <trini@konsulko.com> | 2023-12-20 16:00:22 -0500 |
| commit | 36d3db6c2c060ee85176156dc9a607e8cd5465f4 (patch) | |
| tree | 51f6187c51418043e5dc56f6f9a2dac09e2e848d /test | |
| parent | a0d0e132b39e48cf471db87600ed87b4e65bc187 (diff) | |
| parent | 97135d9f4220e54b38f69a3f2416b2fd9d8f378c (diff) | |
Merge branch '2023-12-20-assorted-general-updates' into next
- Assorted fixes around the tree
Diffstat (limited to 'test')
| -rw-r--r-- | test/boot/bootflow.c | 4 | ||||
| -rwxr-xr-x | test/py/tests/test_fit.py | 8 |
2 files changed, 12 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; diff --git a/test/py/tests/test_fit.py b/test/py/tests/test_fit.py index 04f64fd4bc6..8f9c4b26411 100755 --- a/test/py/tests/test_fit.py +++ b/test/py/tests/test_fit.py @@ -339,6 +339,14 @@ def test_fit(u_boot_console): 'U-Boot loaded FDT from offset %#x, FDT is actually at %#x' % (fit_offset, real_fit_offset)) + # Check if bootargs strings substitution works + output = cons.run_command_list([ + 'env set bootargs \\\"\'my_boot_var=${foo}\'\\\"', + 'env set foo bar', + 'bootm prep', + 'env print bootargs']) + assert 'bootargs="my_boot_var=bar"' in output, "Bootargs strings not substituted" + # Now a kernel and an FDT with cons.log.section('Kernel + FDT load'): params['fdt_load'] = 'load = <%#x>;' % params['fdt_addr'] |
