diff options
author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2021-12-08 11:18:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-12-09 10:33:25 +0000 |
commit | 5b54a2602dd9075ef5949fd914a487cb5845a2ac (patch) | |
tree | 29e8bef18565440f8f42554c6b82d3dc992987dd /meta/lib/oeqa/selftest/cases/recipetool.py | |
parent | d5a8ab8b56c9d506d49c382a46a3d41c6c4a6dcd (diff) | |
download | poky-5b54a2602dd9075ef5949fd914a487cb5845a2ac.tar.gz |
selftest: devtool: Separate common functions and devtool sstate setup into two classes
The selftest recipetool base class reuse the selftest devtool base
class. Thereby the selftest devtool base class setup its own devtool
sstate and the selftest recipetool classes trigger the build of recipes.
This leads to the problem that the build artifacts doesn't reach the
persistent sstate cache and rebuild on every selftest run.
Move the common selftest devtool functions into its own class and use
the sstate cache in the recipetool tests.
(From OE-Core rev: c0bd0686092181b6a5316c373b5b125d78a24e9f)
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/recipetool.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/recipetool.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py index 1aedc02b99..c30a0eb016 100644 --- a/meta/lib/oeqa/selftest/cases/recipetool.py +++ b/meta/lib/oeqa/selftest/cases/recipetool.py | |||
@@ -25,7 +25,7 @@ def tearDownModule(): | |||
25 | runCmd('rm -rf %s' % templayerdir) | 25 | runCmd('rm -rf %s' % templayerdir) |
26 | 26 | ||
27 | 27 | ||
28 | class RecipetoolBase(devtool.DevtoolBase): | 28 | class RecipetoolBase(devtool.DevtoolTestCase): |
29 | 29 | ||
30 | def setUpLocal(self): | 30 | def setUpLocal(self): |
31 | super(RecipetoolBase, self).setUpLocal() | 31 | super(RecipetoolBase, self).setUpLocal() |
@@ -72,7 +72,7 @@ class RecipetoolAppendTests(RecipetoolBase): | |||
72 | 72 | ||
73 | @classmethod | 73 | @classmethod |
74 | def setUpClass(cls): | 74 | def setUpClass(cls): |
75 | super(RecipetoolTests, cls).setUpClass() | 75 | super(RecipetoolAppendTests, cls).setUpClass() |
76 | # Ensure we have the right data in shlibs/pkgdata | 76 | # Ensure we have the right data in shlibs/pkgdata |
77 | cls.logger.info('Running bitbake to generate pkgdata') | 77 | cls.logger.info('Running bitbake to generate pkgdata') |
78 | bitbake('-c packagedata base-files coreutils busybox selftest-recipetool-appendfile') | 78 | bitbake('-c packagedata base-files coreutils busybox selftest-recipetool-appendfile') |