diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-06-27 14:48:49 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-01 08:49:37 +0100 |
| commit | ebfdda93b4d60e193222f1c6b42ac63153286671 (patch) | |
| tree | ad073e60afb65259d94da9b2ac8948fc7f65ac6e /meta | |
| parent | 43434a79c0ac8b0e7a7a5da8730b03af0dc17fd5 (diff) | |
| download | poky-ebfdda93b4d60e193222f1c6b42ac63153286671.tar.gz | |
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 <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/devtool.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
| 154 | value = invalue | 154 | value = invalue |
| 155 | invar = None | 155 | invar = None |
| 156 | elif '=' in line: | 156 | elif '=' in line: |
| 157 | splitline = line.split('=', 1) | 157 | splitline = re.split(r"[?+:]*=[+]?", line, 1) |
| 158 | var = splitline[0].rstrip() | 158 | var = splitline[0].rstrip() |
| 159 | value = splitline[1].strip().strip('"') | 159 | value = splitline[1].strip().strip('"') |
| 160 | if value.endswith('\\'): | 160 | if value.endswith('\\'): |
