aboutsummaryrefslogtreecommitdiff
path: root/test/py/tests/test_fit.py
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-12-20 16:00:22 -0500
committerTom Rini <trini@konsulko.com>2023-12-20 16:00:22 -0500
commit36d3db6c2c060ee85176156dc9a607e8cd5465f4 (patch)
tree51f6187c51418043e5dc56f6f9a2dac09e2e848d /test/py/tests/test_fit.py
parenta0d0e132b39e48cf471db87600ed87b4e65bc187 (diff)
parent97135d9f4220e54b38f69a3f2416b2fd9d8f378c (diff)
Merge branch '2023-12-20-assorted-general-updates' into next
- Assorted fixes around the tree
Diffstat (limited to 'test/py/tests/test_fit.py')
-rwxr-xr-xtest/py/tests/test_fit.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/py/tests/test_fit.py b/test/py/tests/test_fit.py
index 04f64fd4bc..8f9c4b2641 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']