]> git.ipfire.org Git - thirdparty/u-boot.git/blobdiff - test/py/tests/test_fit.py
bootm: Fix flags used for bootargs string substitution
[thirdparty/u-boot.git] / test / py / tests / test_fit.py
index 04f64fd4bc6318259895878ab321895e2ba318ea..8f9c4b26411162ee3d0011b853474e1f653cf3bf 100755 (executable)
@@ -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']