diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-06-15 14:40:05 +0300 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-06-16 07:45:20 +0300 |
commit | 0773e4d9d90ad7c955088b122e7319a1071813fd (patch) | |
tree | 0d73cf30d0350b683b3cc85e3fc280d234a738fd /test | |
parent | 4533b3d0a346ab974b59badc61c904f3adb55a84 (diff) | |
download | u-boot-0773e4d9d90ad7c955088b122e7319a1071813fd.tar.xz |
test: correct architecture in EFI FIT test
On arm64 the its we use to generate the test FIT image has
arch = "arm";
We should use "arm64" here which is mapped to IH_ARCH_ARM64 via
uimage_arch[].
Fixes: 8391f955494e ("test/py: Create a test for launching UEFI binaries from FIT images")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/py/tests/test_efi_fit.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/py/tests/test_efi_fit.py b/test/py/tests/test_efi_fit.py index 7b7c98fb04..0ad483500f 100644 --- a/test/py/tests/test_efi_fit.py +++ b/test/py/tests/test_efi_fit.py @@ -431,6 +431,11 @@ def test_efi_fit_launch(u_boot_console): cons = u_boot_console # Array slice removes leading/trailing quotes. sys_arch = cons.config.buildconfig.get('config_sys_arch', '"sandbox"')[1:-1] + if sys_arch == 'arm': + arm64 = cons.config.buildconfig.get('config_arm64') + if arm64: + sys_arch = 'arm64' + is_sandbox = sys_arch == 'sandbox' if is_sandbox: |