From 1b3caa930befe9ad42c90fc8ce8f95813741b000 Mon Sep 17 00:00:00 2001 From: VAN BOSSUYT Nicolas Date: Wed, 20 Nov 2024 13:23:45 +0100 Subject: [PATCH] tests: Made text header sticky. --- meta/plugins/reftest.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/meta/plugins/reftest.py b/meta/plugins/reftest.py index 12d1eb0..c83c597 100644 --- a/meta/plugins/reftest.py +++ b/meta/plugins/reftest.py @@ -41,6 +41,9 @@ def compareImages( if len(lhs) != len(rhs): return False + if lhs == rhs: + return True + errorSum = 0 for i in range(len(lhs)): diff = abs(lhs[i] - rhs[i]) / 255 @@ -135,6 +138,7 @@ def getInfo(txt):

{props.get('name')}

{props.get('help')}

Source + """ search = re.search(r"""([\w\W]+?)""", test) @@ -266,8 +270,6 @@ def getInfo(txt): if args.fast: break - report += "
" - report += """