diff --git a/kernel/trunk/test/common/__init__.py b/kernel/trunk/test/common/__init__.py index 2eaebf2dda..e2b2018478 100644 --- a/kernel/trunk/test/common/__init__.py +++ b/kernel/trunk/test/common/__init__.py @@ -67,6 +67,9 @@ class Qemu: for key in keys.split(): self.send_monitor_command(f"sendkey {key}") + def take_screenshot(self, fname): + self.send_monitor_command(f"screendump {fname}") + def send_monitor_command(self, command): self.monitor_in.write(bytes(command + "\n", "utf-8")) self.monitor_in.flush()