mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
oeqa/selftest/buildhistory: Fix test if USER_CLASSES is unset
If USER_CLASSES is unset, the test was failing. Fix that. (From OE-Core rev: 7be456e675a17344aedaa65a10ecaa015bf3803a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
9ffc6db805
commit
f4dc3460a1
|
|
@ -16,7 +16,7 @@ class BuildhistoryTests(OESelftestTestCase):
|
|||
|
||||
def config_buildhistory(self, tmp_bh_location=False):
|
||||
bb_vars = get_bb_vars(['USER_CLASSES', 'INHERIT'])
|
||||
if (not 'buildhistory' in bb_vars['USER_CLASSES']) and (not 'buildhistory' in bb_vars['INHERIT']):
|
||||
if (not bb_vars['USER_CLASSES'] or not 'buildhistory' in bb_vars['USER_CLASSES']) and (not 'buildhistory' in bb_vars['INHERIT']):
|
||||
add_buildhistory_config = 'INHERIT += "buildhistory"\nBUILDHISTORY_COMMIT = "1"'
|
||||
self.append_config(add_buildhistory_config)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user