summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/tests/codeparser.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/codeparser.py b/bitbake/lib/bb/tests/codeparser.py
index e30e78c158..3fd76a8f9f 100644
--- a/bitbake/lib/bb/tests/codeparser.py
+++ b/bitbake/lib/bb/tests/codeparser.py
@@ -123,6 +123,13 @@ ${D}${libdir}/pkgconfig/*.pc
123 self.parseExpression("sed -i -e 's:IP{:I${:g' $pc") 123 self.parseExpression("sed -i -e 's:IP{:I${:g' $pc")
124 self.assertExecs(set(["sed"])) 124 self.assertExecs(set(["sed"]))
125 125
126 def test_parameter_expansion_modifiers(self):
127 # - and + are also valid modifiers for parameter expansion, but are
128 # valid characters in bitbake variable names, so are not included here
129 for i in ('=', ':-', ':=', '?', ':?', ':+', '#', '%', '##', '%%'):
130 name = "foo%sbar" % i
131 self.parseExpression("${%s}" % name)
132 self.assertNotIn(name, self.references)
126 133
127 def test_until(self): 134 def test_until(self):
128 self.parseExpression("until false; do echo true; done") 135 self.parseExpression("until false; do echo true; done")