From: Alexander Kanavin Date: Mon, 5 Sep 2022 18:21:41 +0000 (+0200) Subject: selftest/cases/bblayers.py: build python3-jsonschema only once X-Git-Tag: 2022-10~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c23e711c277562cf32093851e43bf93a7cb61dc;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git selftest/cases/bblayers.py: build python3-jsonschema only once setUpLocal runs before every testcase, setUpClass runs only once in the beginning. Signed-off-by: Alexander Kanavin Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/selftest/cases/bblayers.py b/meta/lib/oeqa/selftest/cases/bblayers.py index c6bd5a1f6af..b0489483869 100644 --- a/meta/lib/oeqa/selftest/cases/bblayers.py +++ b/meta/lib/oeqa/selftest/cases/bblayers.py @@ -14,7 +14,9 @@ from oeqa.selftest.case import OESelftestTestCase class BitbakeLayers(OESelftestTestCase): - def setUpLocal(self): + @classmethod + def setUpClass(cls): + super(BitbakeLayers, cls).setUpClass() bitbake("python3-jsonschema-native") bitbake("-c addto_recipe_sysroot python3-jsonschema-native")