Before we mess with the console output lets create a new helper just for that.
Signed-off-by: Alex Bennée <[email protected]> --- python/qemu/machine/machine.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/qemu/machine/machine.py b/python/qemu/machine/machine.py index e8973a87394..18ee5ec0147 100644 --- a/python/qemu/machine/machine.py +++ b/python/qemu/machine/machine.py @@ -306,7 +306,11 @@ def _harness_args(self) -> List[str]: moncdev = f"socket,id=mon,path={self._monitor_address}" args.extend(['-chardev', moncdev, '-mon', 'chardev=mon,mode=control']) + return args + @property + def _console_args(self) -> List[str]: + args: List[str] = [] for _ in range(self._console_index): args.extend(['-serial', 'null']) if self._console_set: @@ -372,6 +376,7 @@ def _pre_launch(self) -> None: self._wrapper, [self._binary], self._harness_args, + self._console_args, self._base_args, self._args )) -- 2.47.3
