From: Richard Purdie Date: Fri, 3 Oct 2025 14:36:45 +0000 (+0100) Subject: oeqa/selftest/buildhistory: Fix test if USER_CLASSES is unset X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=42fa323a63fd85fe8cf8b9ab9f4045a21a472197;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git oeqa/selftest/buildhistory: Fix test if USER_CLASSES is unset If USER_CLASSES is unset, the test was failing. Fix that. Signed-off-by: Richard Purdie --- 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): 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)