diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-28 11:52:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-07-30 14:35:45 +0100 |
commit | 9b2d96b27f550da0fa68ba9ea96be98eb3a832a6 (patch) | |
tree | 90e4c71504db37bf849e579f627c7936b36601b2 /lib/bb/tests | |
parent | f8d1bc200460fc1cb5cbf7a7d1986fd86424b22d (diff) | |
download | bitbake-9b2d96b27f550da0fa68ba9ea96be98eb3a832a6.tar.gz |
data_smart: Allow colon in variable expansion regex
Now that ":" is a valid character in variable key names, it needs to be
allowed by the variable expansion code too, to match.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/tests')
-rw-r--r-- | lib/bb/tests/codeparser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/tests/codeparser.py b/lib/bb/tests/codeparser.py index 826a2d2f6..f48520479 100644 --- a/lib/bb/tests/codeparser.py +++ b/lib/bb/tests/codeparser.py @@ -111,9 +111,9 @@ ${D}${libdir}/pkgconfig/*.pc self.assertExecs(set(["sed"])) def test_parameter_expansion_modifiers(self): - # - and + are also valid modifiers for parameter expansion, but are + # -,+ and : are also valid modifiers for parameter expansion, but are # valid characters in bitbake variable names, so are not included here - for i in ('=', ':-', ':=', '?', ':?', ':+', '#', '%', '##', '%%'): + for i in ('=', '?', '#', '%', '##', '%%'): name = "foo%sbar" % i self.parseExpression("${%s}" % name) self.assertNotIn(name, self.references) |