From d8292a9bbd6964b898ed59c5af01a69d1f94ff83 Mon Sep 17 00:00:00 2001 From: Vilem Zavodny Date: Thu, 30 Jan 2025 07:39:06 +0100 Subject: [PATCH] no message --- .../display_lvgl_benchmark/pytest_display_lvgl_benchmark.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/display_lvgl_benchmark/pytest_display_lvgl_benchmark.py b/examples/display_lvgl_benchmark/pytest_display_lvgl_benchmark.py index 682dc8a2..6372e956 100644 --- a/examples/display_lvgl_benchmark/pytest_display_lvgl_benchmark.py +++ b/examples/display_lvgl_benchmark/pytest_display_lvgl_benchmark.py @@ -49,7 +49,8 @@ def get_test_diff(test1, test2, name, positive): color = "red" if diff < 0 else "green" else: color = "green" if diff < 0 else "red" - return f"*({diff})*" + sign = "+" if diff > 0 else "" + return f"*({sign}{diff})*" @pytest.mark.esp_box_3