Skip to contentSkip to conversation

tests/avocado/machine_s390_ccw_virtio: Adapt test to new default resolution

PATCH In review Thomas Huth 4 participants 4 messages Feb 21, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/avocado/machine_s390_ccw_virtio: Adapt test to new default resolution

QEMU's default screen resolution recently changed to 1280x800, so the resolution in the screen shot header changed of course, too.

Fixes de72c4b7cd ("edid: set default resolution to 1280x800 (WXGA)")
---
 tests/avocado/machine_s390_ccw_virtio.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/avocado/machine_s390_ccw_virtio.py +1 -1
index bd03d7160b..438a6f4321 100644
@@ -248,7 +248,7 @@ def test_s390x_fedora(self):
             line = ppmfile.readline()
             self.assertEqual(line, b"P6\n")
             line = ppmfile.readline()
-            self.assertEqual(line, b"1024 768\n")
+            self.assertEqual(line, b"1280 800\n")
             line = ppmfile.readline()
             self.assertEqual(line, b"255\n")
             line = ppmfile.readline(256)
Signature · 1 line
2.27.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Thomas Huth

QEMU's default screen resolution recently changed to 1280x800, so the resolution in the screen shot header changed of course, too.

Fixes de72c4b7cd ("edid: set default resolution to 1280x800 (WXGA)")
---
 tests/avocado/machine_s390_ccw_virtio.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
Reviewed-by on v1 1/1
#2 lore raw
In reply to Thomas Huth
Quoted 9 lines · Thomas Huth

QEMU's default screen resolution recently changed to 1280x800, so the resolution in the screen shot header changed of course, too.

Fixes de72c4b7cd ("edid: set default resolution to 1280x800 (WXGA)")
---
  tests/avocado/machine_s390_ccw_virtio.py | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by on v1 1/1
#3 lore raw
In reply to Thomas Huth
Quoted 6 lines · On Mon, 21 Feb 2022 11:19:33 +0100 Thomas Huth <[email protected]> wrote:

QEMU's default screen resolution recently changed to 1280x800, so the resolution in the screen shot header changed of course, too.

Fixes de72c4b7cd ("edid: set default resolution to 1280x800 (WXGA)")

Looks good!

Quoted 17 lines
---
 tests/avocado/machine_s390_ccw_virtio.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/avocado/machine_s390_ccw_virtio.py +1 -1
index bd03d7160b..438a6f4321 100644
@@ -248,7 +248,7 @@ def test_s390x_fedora(self):
             line = ppmfile.readline()
             self.assertEqual(line, b"P6\n")
             line = ppmfile.readline()
-            self.assertEqual(line, b"1024 768\n")
+            self.assertEqual(line, b"1280 800\n")
             line = ppmfile.readline()
             self.assertEqual(line, b"255\n")
             line = ppmfile.readline(256)