summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests/parse.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/tests/parse.py')
-rw-r--r--bitbake/lib/bb/tests/parse.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/parse.py b/bitbake/lib/bb/tests/parse.py
index c296db2013..0b2706af02 100644
--- a/bitbake/lib/bb/tests/parse.py
+++ b/bitbake/lib/bb/tests/parse.py
@@ -68,6 +68,23 @@ C = "3"
68 with self.assertRaises(bb.parse.ParseError): 68 with self.assertRaises(bb.parse.ParseError):
69 d = bb.parse.handle(f.name, self.d)[''] 69 d = bb.parse.handle(f.name, self.d)['']
70 70
71 unsettest = """
72A = "1"
73B = "2"
74B[flag] = "3"
75
76unset A
77unset B[flag]
78"""
79
80 def test_parse_unset(self):
81 f = self.parsehelper(self.unsettest)
82 d = bb.parse.handle(f.name, self.d)['']
83 self.assertEqual(d.getVar("A", True), None)
84 self.assertEqual(d.getVarFlag("A","flag", True), None)
85 self.assertEqual(d.getVar("B", True), "2")
86
87
71 overridetest = """ 88 overridetest = """
72RRECOMMENDS_${PN} = "a" 89RRECOMMENDS_${PN} = "a"
73RRECOMMENDS_${PN}_libc = "b" 90RRECOMMENDS_${PN}_libc = "b"