From da046a988686b9cc08d29348992498c8f7260f5d Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 25 Aug 2026 15:16:54 -0500 Subject: [PATCH] Assert the forced-on working-ccache case emits no warning at all The 'Not decoded' escape hatch could only mask a regression; assert the captured records directly instead. --- tests/unit_tests/test_espidf_framework.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit_tests/test_espidf_framework.py b/tests/unit_tests/test_espidf_framework.py index 8ef231aa3a..45a971ca01 100644 --- a/tests/unit_tests/test_espidf_framework.py +++ b/tests/unit_tests/test_espidf_framework.py @@ -1633,7 +1633,7 @@ def test_ccache_env_opt_in_with_working_binary( ): env = _ccache_env() assert env["IDF_CCACHE_ENABLE"] == "1" - assert "ccache" not in caplog.text.lower() or "Not decoded" in caplog.text + assert not [r for r in caplog.records if r.levelno >= logging.WARNING] def test_ccache_env_opt_in_with_rejected_binary(