Message ID | 20250620151429.3210879-11-ross.burton@arm.com |
---|---|
State | New |
Headers | show |
Series | [01/12] tinfoil: add wait_for decorator and build_file_sync() helper | expand |
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py index 0155ee62ee0..fcdf9159b54 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('\\'):
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 <ross.burton@arm.com> --- meta/lib/oeqa/selftest/cases/devtool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)