diff options
author | Simon Glass <sjg@chromium.org> | 2023-04-02 14:01:25 +1200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-04-03 06:53:53 +1200 |
commit | 8511aabd98c9d13222846289bbb6bb8596c5f6ed (patch) | |
tree | a46fed453056bc25f8d0b1e05aaa1af352624222 | |
parent | 74b75aa6977c63f3605b266d6457feee3099934a (diff) | |
download | u-boot-8511aabd98c9d13222846289bbb6bb8596c5f6ed.zip u-boot-8511aabd98c9d13222846289bbb6bb8596c5f6ed.tar.gz u-boot-8511aabd98c9d13222846289bbb6bb8596c5f6ed.tar.bz2 |
vbe: Use the correct image filename in the test
At present this inadvertently relies on having a symlink to the correct
file from the current directory. Use the correct path to fix this.
Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | test/py/tests/test_vbe_vpl.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/py/tests/test_vbe_vpl.py b/test/py/tests/test_vbe_vpl.py index d1c9d05..ed12d3a 100644 --- a/test/py/tests/test_vbe_vpl.py +++ b/test/py/tests/test_vbe_vpl.py @@ -15,6 +15,7 @@ def test_vbe_vpl(u_boot_console): #cmd = [cons.config.build_dir + fname, '-v'] ram = os.path.join(cons.config.build_dir, 'ram.bin') fdt = os.path.join(cons.config.build_dir, 'arch/sandbox/dts/test.dtb') + image_fname = os.path.join(cons.config.build_dir, 'image.bin') # Enable firmware1 and the mmc that it uses. These are needed for the full # VBE flow. @@ -24,12 +25,13 @@ def test_vbe_vpl(u_boot_console): cons, f'fdtput -t s {fdt} /bootstd/firmware1 status okay') u_boot_utils.run_and_log( cons, f'fdtput -t s {fdt} /mmc3 status okay') + u_boot_utils.run_and_log( + cons, f'fdtput -t s {fdt} /mmc3 filename {image_fname}') # Remove any existing RAM file, so we don't have old data present if os.path.exists(ram): os.remove(ram) - flags = ['-p', os.path.join(cons.config.build_dir, 'image.bin'), '-w', - '-s', 'state.dtb'] + flags = ['-p', image_fname, '-w', '-s', 'state.dtb'] cons.restart_uboot_with_flags(flags) # Make sure that VBE was used in both VPL (to load SPL) and SPL (to load |