test: qemu: pass -nographic in the default case. Otherwise, we end up with an error message if the default is to use a graphic backend.
Signed-off-by: Ahmad Fatoum <a.fat...@pengutronix.de> --- conftest.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/conftest.py b/conftest.py index 45e8835924b3..e8de5952efb4 100644 --- a/conftest.py +++ b/conftest.py @@ -116,9 +116,10 @@ def strategy(request, target, pytestconfig): else: pytest.exit("barebox currently supports only a single extra virtio console\n", 1) - graphics = None - if pytestconfig.option.qemu_graphics: - if qemu_bin == "qemu-system-x86_64": + if qemu_bin is not None: + if not pytestconfig.option.qemu_graphics: + graphics = '-nographic' + elif qemu_bin == "qemu-system-x86_64": graphics = '-device isa-vga' elif 'pci' in features: graphics = '-device VGA' -- 2.39.5