On Fri, 26 Jan 2024 at 15:54, Richard Purdie
<richard.pur...@linuxfoundation.org> wrote:

> > +    def test_devtool_modify_git_no_extract(self):
> > +        # Check preconditions
> > +        testrecipe = 'psplash'
> > +        src_uri = get_bb_var('SRC_URI', testrecipe)
> > +        self.assertIn('git://', src_uri, 'This test expects the %s recipe 
> > to be a git recipe' % testrecipe)
> > +        # Clean up anything in the workdir/sysroot/sstate cache
> > +        bitbake('%s -c cleansstate' % testrecipe)
>
> I'm afraid we can't use cleansstate inside oe-selftest as it may race
> against other copies of oe-selftest running against the same sstate
> cache (or other builds using psplash in this case).
>
> We'll need to find another way to make this work.

There's a number of existing tests in
meta/lib/oeqa/selftest/cases/devtool.py which do rely on cleansstate;
I can only presume they do it with utmost care, and can be used as
examples for how things could be done.

Alex
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#194388): 
https://lists.openembedded.org/g/openembedded-core/message/194388
Mute This Topic: https://lists.openembedded.org/mt/103881323/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to