forked from Mirror/pmbootstrap
pmbootstrap init: only display UIs for device arch (MR 1937)
Hide user interfaces that are not available for the selected device's architecture. Closes #1790
This commit is contained in:
parent
2d2ab1df56
commit
0ff9c5d471
6 changed files with 55 additions and 7 deletions
|
@ -216,12 +216,13 @@ def test_questions_keymaps(args, monkeypatch):
|
|||
|
||||
def test_questions_ui(args, monkeypatch):
|
||||
args.aports = pmb_test.const.testdata + "/init_questions_device/aports"
|
||||
device = "lg-mako"
|
||||
|
||||
fake_answers(monkeypatch, ["none"])
|
||||
assert pmb.config.init.ask_for_ui(args) == "none"
|
||||
assert pmb.config.init.ask_for_ui(args, device) == "none"
|
||||
|
||||
fake_answers(monkeypatch, ["invalid_UI", "weston"])
|
||||
assert pmb.config.init.ask_for_ui(args) == "weston"
|
||||
assert pmb.config.init.ask_for_ui(args, device) == "weston"
|
||||
|
||||
|
||||
def test_questions_ui_extras(args, monkeypatch):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue