From b3fb622ac5d5bfa1b84125d047716c7962845a10 Mon Sep 17 00:00:00 2001 From: "Magomed Kostoev (mkostoevr)" Date: Fri, 5 Nov 2021 11:53:13 +0000 Subject: [PATCH] [KERNEL][TEST][API] Implement screenshot taking git-svn-id: svn://kolibrios.org@9256 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/test/common/__init__.py | 3 +++ 1 file changed, 3 insertions(+) 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()