mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-27 10:45:37 -04:00
devices/test_deviceinfo: add test for device variants ("kernels" in pmb)
This commit is contained in:
parent
0e3f0b8771
commit
3dcaefe35b
1 changed files with 11 additions and 0 deletions
|
@ -60,3 +60,14 @@ def test_get_deviceinfo_from_repo():
|
||||||
assert dev
|
assert dev
|
||||||
info = dev.parse_deviceinfo()
|
info = dev.parse_deviceinfo()
|
||||||
assert info
|
assert info
|
||||||
|
|
||||||
|
|
||||||
|
def test_get_variant_deviceinfo_from_repo():
|
||||||
|
config.try_load_file()
|
||||||
|
dev = get_device('sdm845-xiaomi-beryllium-ebbg')
|
||||||
|
assert dev
|
||||||
|
info = dev.parse_deviceinfo()
|
||||||
|
assert info
|
||||||
|
assert 'dtb' in info # variant-specific variable, check it has been stripped down from 'dtb_ebbg' to 'dtb'
|
||||||
|
assert 'dtb_tianma' not in info
|
||||||
|
assert info.dtb
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue