]> Git Repo - u-boot.git/commitdiff
test: efi_selftest: Do not force serial# setting
authorTom Rini <[email protected]>
Fri, 31 Jul 2020 13:45:02 +0000 (09:45 -0400)
committerTom Rini <[email protected]>
Fri, 31 Jul 2020 14:13:00 +0000 (10:13 -0400)
As part of the EFI self test we set and check the serial# variable.
However, we should not be forcing this setting.  In the case where we
are allowed to change the variable it will change, and we will pass the
test.  In the case where we cannot change it, force may or may not be
allowed, depending on further environment restrictions.  Drop the -f
flag here as we do not need it.

Cc: Heinrich Schuchardt <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
test/py/tests/test_efi_selftest.py

index 971c9f6053a311122759875cd5a346f858bbb4f5..9b520c2070b27c68d5b006f119c0badb7014733b 100644 (file)
@@ -36,7 +36,7 @@ def test_efi_selftest_device_tree(u_boot_console):
     output = u_boot_console.run_command('bootefi selftest')
     assert '\'device tree\'' in output
     u_boot_console.run_command(cmd='setenv efi_selftest device tree')
-    u_boot_console.run_command(cmd='setenv -f serial# Testing DT')
+    u_boot_console.run_command(cmd='setenv serial# Testing DT')
     u_boot_console.run_command(cmd='bootefi selftest ${fdtcontroladdr}', wait_for_prompt=False)
     m = u_boot_console.p.expect(['serial-number: Testing DT', 'U-Boot'])
     if m != 0:
This page took 0.042907 seconds and 4 git commands to generate.