From: Ross Burton Date: Fri, 27 Jun 2025 13:48:49 +0000 (+0100) Subject: oeqa/sefltest/devtool: improve assignment matching in _test_recipe_contents X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bee528f38d39ed1f91319201e8a99c0b65c9f975;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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. Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- 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('\\'):