]> git.dujemihanovic.xyz Git - u-boot.git/commit
test/py: serial# cannot be overwritten on some devices
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 7 Aug 2020 21:11:35 +0000 (23:11 +0200)
committerTom Rini <trini@konsulko.com>
Sat, 8 Aug 2020 12:31:39 +0000 (08:31 -0400)
commit38ee01e4ddf7cca53fcf6585dd00373246b4df40
tree39c95a609d9464b42005f48312707a7671fa06b4
parent626b2df302fce4bf91a240f186ba447046db4741
test/py: serial# cannot be overwritten on some devices

On some devices the environment variable serial# cannot be overwritten.
Set the variable only if it is not set.

For our unit test it is sufficient to test if any value for serial-number
is set.

Fixes: 8a5cdf601f8d ("test: efi_selftest: Do not force serial# setting")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
test/py/tests/test_efi_selftest.py