Supply qemu options only for qemu targets. Otherwise

labgrid-pytest --lg-env test/sandbox/sandbox_defconfig.yaml

fails with:

_pytest.outcomes.Exit: Qemu option supplied for non-Qemu targe

Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de>
---
 conftest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/conftest.py b/conftest.py
index e3f09bac31..782ebc0536 100644
--- a/conftest.py
+++ b/conftest.py
@@ -125,7 +125,7 @@ def strategy(request, target, pytestconfig):
         else:
             pytest.exit("--graphics unsupported for target\n", 1)
 
-    strategy.append_qemu_args(graphics or '-nographic')
+        strategy.append_qemu_args(graphics)
 
     for i, blk in enumerate(pytestconfig.option.qemu_block):
         if virtio:
-- 
2.39.5


Reply via email to