From ebfdda93b4d60e193222f1c6b42ac63153286671 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 27 Jun 2025 14:48:49 +0100 Subject: [PATCH] oeqa/sefltest/devtool: improve assignment matching in _test_recipe_contents This function assumed that all assignments are done with just "=". However, being able to check += or ?= is also useful, so use a regex to split the line and be more flexible about what an assignment operator looks like. (From OE-Core rev: bee528f38d39ed1f91319201e8a99c0b65c9f975) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oeqa/selftest/cases/devtool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py index 74a7727cc0..05f228f03e 100644 --- a/meta/lib/oeqa/selftest/cases/devtool.py +++ b/meta/lib/oeqa/selftest/cases/devtool.py @@ -154,7 +154,7 @@ class DevtoolTestCase(OESelftestTestCase): value = invalue invar = None elif '=' in line: - splitline = line.split('=', 1) + splitline = re.split(r"[?+:]*=[+]?", line, 1) var = splitline[0].rstrip() value = splitline[1].strip().strip('"') if value.endswith('\\'):