diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-06 14:14:54 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-10-09 09:26:35 +0100 |
| commit | f4dc3460a1d77a29fb3cc55b8dcc620ab1bab15e (patch) | |
| tree | acdab00346631b5a4b6d80bc3d717d9fef9730ab /meta | |
| parent | 9ffc6db805aade17047ddca53d7ffb62aa5a60d6 (diff) | |
| download | poky-f4dc3460a1d77a29fb3cc55b8dcc620ab1bab15e.tar.gz | |
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>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/buildhistory.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/buildhistory.py b/meta/lib/oeqa/selftest/cases/buildhistory.py index 511c666554..1edc60c72d 100644 --- a/meta/lib/oeqa/selftest/cases/buildhistory.py +++ b/meta/lib/oeqa/selftest/cases/buildhistory.py | |||
| @@ -16,7 +16,7 @@ class BuildhistoryTests(OESelftestTestCase): | |||
| 16 | 16 | ||
| 17 | def config_buildhistory(self, tmp_bh_location=False): | 17 | def config_buildhistory(self, tmp_bh_location=False): |
| 18 | bb_vars = get_bb_vars(['USER_CLASSES', 'INHERIT']) | 18 | bb_vars = get_bb_vars(['USER_CLASSES', 'INHERIT']) |
| 19 | if (not 'buildhistory' in bb_vars['USER_CLASSES']) and (not 'buildhistory' in bb_vars['INHERIT']): | 19 | if (not bb_vars['USER_CLASSES'] or not 'buildhistory' in bb_vars['USER_CLASSES']) and (not 'buildhistory' in bb_vars['INHERIT']): |
| 20 | add_buildhistory_config = 'INHERIT += "buildhistory"\nBUILDHISTORY_COMMIT = "1"' | 20 | add_buildhistory_config = 'INHERIT += "buildhistory"\nBUILDHISTORY_COMMIT = "1"' |
| 21 | self.append_config(add_buildhistory_config) | 21 | self.append_config(add_buildhistory_config) |
| 22 | 22 | ||
