forked from Mirror/pmbootstrap
Rename deviceinfo variable flash_methods to flash_method (#1030)
* Rename deviceinfo variable flash_methods to flash_method * Update pmb.config.deviceinfo_attributes / add sanity check * Add test case that parses all deviceinfo files
This commit is contained in:
parent
d34e8d172e
commit
c6eb56c200
91 changed files with 188 additions and 132 deletions
|
@ -125,7 +125,7 @@ def test_aportgen_device_wizard(args, monkeypatch):
|
|||
assert deviceinfo["arch"] == "armhf"
|
||||
assert deviceinfo["keyboard"] == "false"
|
||||
assert deviceinfo["external_disk"] == "true"
|
||||
assert deviceinfo["flash_methods"] == "heimdall-isorec"
|
||||
assert deviceinfo["flash_method"] == "heimdall-isorec"
|
||||
assert deviceinfo["generate_bootimg"] == ""
|
||||
assert deviceinfo["generate_legacy_uboot_initfs"] == ""
|
||||
|
||||
|
@ -147,7 +147,7 @@ def test_aportgen_device_wizard(args, monkeypatch):
|
|||
answers["Path"] = ""
|
||||
deviceinfo, apkbuild, apkbuild_linux = generate(args, monkeypatch, answers)
|
||||
assert apkbuild["depends"] == ["linux-testsuite-testdevice", "mkbootimg"]
|
||||
assert deviceinfo["flash_methods"] == answers["Flash method"]
|
||||
assert deviceinfo["flash_method"] == answers["Flash method"]
|
||||
assert deviceinfo["generate_bootimg"] == "true"
|
||||
|
||||
# 0xffff (legacy uboot initfs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue