From: Ahmad Fatoum <[email protected]> Instead of running into a lot of later errors, let's just abort immediately when trying to use --interactive with a target that doesn't support it.
Signed-off-by: Ahmad Fatoum <[email protected]> --- test/strategy.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/strategy.py b/test/strategy.py index fc65895daece..fcfa2ed48125 100644 --- a/test/strategy.py +++ b/test/strategy.py @@ -93,6 +93,9 @@ class BareboxTestStrategy(Strategy): if state == "qemu_dump_dtb": self.qemu.machine += f",dumpdtb={self.target.name}.dtb" + if self.qemu is None: + pytest.exit(f"Can't enter {state} for non-QEMU target") + cmd = self.qemu.get_qemu_base_args() cmd.append("-serial") -- 2.47.3
