[OE-core] [PATCH 2/4] selftest/buildoptions: force compile task instead of cleaning sstates

Richard Purdie richard.purdie at linuxfoundation.org
Tue Jan 31 23:16:00 UTC 2017


On Tue, 2017-01-31 at 16:50 -0600,
leonardo.sandoval.gonzalez at linux.intel.com wrote:
> From: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>
> 
> There is no need to clean m4 sstates, use force instead.
> 
> Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.in
> tel.com>
> ---
>  meta/lib/oeqa/selftest/buildoptions.py | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/meta/lib/oeqa/selftest/buildoptions.py
> b/meta/lib/oeqa/selftest/buildoptions.py
> index 004b2dd..a83088f 100644
> --- a/meta/lib/oeqa/selftest/buildoptions.py
> +++ b/meta/lib/oeqa/selftest/buildoptions.py
> @@ -36,8 +36,7 @@ class ImageOptionsTests(oeSelfTest):
>          p = get_bb_var('SYSROOT_DESTDIR', 'ccache-native') +
> get_bb_var('bindir', 'ccache-native') + "/" + "ccache"
>          self.assertTrue(os.path.isfile(p), msg = "No ccache found
> (%s)" % p)
>          self.write_config('INHERIT += "ccache"')
> -        bitbake("m4 -c cleansstate")
> -        bitbake("m4 -c compile")
> +        bitbake("m4 -c compile -f")
>          self.addCleanup(bitbake, 'ccache-native -ccleansstate')
>          res = runCmd("grep ccache %s" %
> (os.path.join(get_bb_var("WORKDIR","m4"),"temp/log.do_compile")),
> ignore_status=True)
>          self.assertEqual(0, res.status, msg="No match for ccache in
> m4 log.do_compile. For further details: %s" %
> os.path.join(get_bb_var("WORKDIR","m4"),"temp/log.do_compile"))

If we force something like this we really need a cleanup in there to
remove the taint too...

Cheers,

Richard



More information about the Openembedded-core mailing list