diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/buildhistory.py')
-rw-r--r-- | meta/lib/oeqa/selftest/buildhistory.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/buildhistory.py b/meta/lib/oeqa/selftest/buildhistory.py index 674da6205a..008c39c956 100644 --- a/meta/lib/oeqa/selftest/buildhistory.py +++ b/meta/lib/oeqa/selftest/buildhistory.py | |||
@@ -3,14 +3,15 @@ import re | |||
3 | import datetime | 3 | import datetime |
4 | 4 | ||
5 | from oeqa.selftest.base import oeSelfTest | 5 | from oeqa.selftest.base import oeSelfTest |
6 | from oeqa.utils.commands import bitbake, get_bb_var | 6 | from oeqa.utils.commands import bitbake, get_bb_vars |
7 | from oeqa.utils.decorators import testcase | 7 | from oeqa.utils.decorators import testcase |
8 | 8 | ||
9 | 9 | ||
10 | class BuildhistoryBase(oeSelfTest): | 10 | class BuildhistoryBase(oeSelfTest): |
11 | 11 | ||
12 | def config_buildhistory(self, tmp_bh_location=False): | 12 | def config_buildhistory(self, tmp_bh_location=False): |
13 | if (not 'buildhistory' in get_bb_var('USER_CLASSES')) and (not 'buildhistory' in get_bb_var('INHERIT')): | 13 | bb_vars = get_bb_vars(['USER_CLASSES', 'INHERIT']) |
14 | if (not 'buildhistory' in bb_vars['USER_CLASSES']) and (not 'buildhistory' in bb_vars['INHERIT']): | ||
14 | add_buildhistory_config = 'INHERIT += "buildhistory"\nBUILDHISTORY_COMMIT = "1"' | 15 | add_buildhistory_config = 'INHERIT += "buildhistory"\nBUILDHISTORY_COMMIT = "1"' |
15 | self.append_config(add_buildhistory_config) | 16 | self.append_config(add_buildhistory_config) |
16 | 17 | ||