]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oeqa/runtime/login: Mask out the mouse panel icon for now
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Mar 2024 15:11:10 +0000 (15:11 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Mar 2024 12:09:58 +0000 (12:09 +0000)
The mouse panel icon can move when the time changes between 3 and 4 digits.
Ideally we'd fix the alignment of the clock on the panel but to get the
tests working, increase the size of the mask for now.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/runtime/cases/login.py

index 175a60c48ca6b5bd0289b6e8b42ccd3d37a67e73..ac8a0454f384b45638095eb951de9b5c70d747a9 100644 (file)
@@ -84,10 +84,10 @@ class LoginTest(OERuntimeTestCase):
                 width = subprocess.check_output(cmd, shell=True, env=ourenv).decode()
 
             rblank = int(float(width))
-            lblank = rblank-40
+            lblank = rblank-80
 
             # Use the meta-oe version of convert, along with it's suffix. This blanks out the clock.
-            cmd = "convert.im7 {0} -fill white -draw 'rectangle {1},10 {2},22' {3}".format(t.name, str(rblank), str(lblank), t.name)
+            cmd = "convert.im7 {0} -fill white -draw 'rectangle {1},4 {2},28' {3}".format(t.name, str(rblank), str(lblank), t.name)
             convert_out=subprocess.check_output(cmd, shell=True, env=ourenv).decode()