diff options
Diffstat (limited to 'bitbake/lib/bb/tests/parse.py')
| -rw-r--r-- | bitbake/lib/bb/tests/parse.py | 17 |
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 = """ | ||
| 72 | A = "1" | ||
| 73 | B = "2" | ||
| 74 | B[flag] = "3" | ||
| 75 | |||
| 76 | unset A | ||
| 77 | unset 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 = """ |
| 72 | RRECOMMENDS_${PN} = "a" | 89 | RRECOMMENDS_${PN} = "a" |
| 73 | RRECOMMENDS_${PN}_libc = "b" | 90 | RRECOMMENDS_${PN}_libc = "b" |
