Fix the indentation in one line, and while we're at it, use an f-string
instead of old-school formatting in another spot.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-ID: <
20251110104837.52077-1-thuth@redhat.com>
time.sleep(0.1)
res = self.vm.cmd('human-monitor-command',
- command_line='screendump %s' % screenshot_path)
+ command_line=f"screendump {screenshot_path}")
if 'unknown command' in res:
self.skipTest('screendump not available')
from PIL import Image
with Image.open(screenshot_path) as image:
- width, height = image.size
+ width, height = image.size
self.assertEqual(width, 1120)
self.assertEqual(height, 832)