|
@@ -12,6 +12,7 @@
|
|
|
|
|
|
from avocado import skipIf
|
|
|
from avocado_qemu import BUILD_DIR
|
|
|
+from avocado.utils import datadrainer
|
|
|
from avocado.utils import gdb
|
|
|
from avocado.utils import process
|
|
|
from avocado.utils.network.ports import find_free_port
|
|
@@ -52,6 +53,10 @@ def run_vm(self, record, shift, args, replay_path, image_path, port):
|
|
|
if args:
|
|
|
vm.add_args(*args)
|
|
|
vm.launch()
|
|
|
+ console_drainer = datadrainer.LineLogger(vm.console_socket.fileno(),
|
|
|
+ logger=self.log.getChild('console'),
|
|
|
+ stop_check=(lambda : not vm.is_running()))
|
|
|
+ console_drainer.start()
|
|
|
return vm
|
|
|
|
|
|
@staticmethod
|