[oe-commits] [openembedded-core] 13/22: oeqa/selftest/buildoptions: Improve ccache test

git at git.openembedded.org git at git.openembedded.org
Thu Nov 29 12:48:39 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 9cd3b27198e814acb0c239ec1ef2804d35730f60
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Nov 29 10:22:15 2018 +0000

    oeqa/selftest/buildoptions: Improve ccache test
    
    This test occisionally fails as m4 doesn't recompile, meaning the logfile test
    then doesn't find mention of ccache.
    
    To ensure m4 does recompile, clean m4 before force compiling it.
    
    (Reading the test is confusing due to the test cleanup also involving a clean)
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/selftest/cases/buildoptions.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/lib/oeqa/selftest/cases/buildoptions.py b/meta/lib/oeqa/selftest/cases/buildoptions.py
index 9b87e7f..c3c90a0 100644
--- a/meta/lib/oeqa/selftest/cases/buildoptions.py
+++ b/meta/lib/oeqa/selftest/cases/buildoptions.py
@@ -38,6 +38,7 @@ class ImageOptionsTests(OESelftestTestCase):
         self.assertTrue(os.path.isfile(p), msg = "No ccache found (%s)" % p)
         self.write_config('INHERIT += "ccache"')
         self.add_command_to_tearDown('bitbake -c clean m4')
+        bitbake("m4 -c clean")
         bitbake("m4 -f -c compile")
         log_compile = os.path.join(get_bb_var("WORKDIR","m4"), "temp/log.do_compile")
         with open(log_compile, "r") as f:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list