summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-11-29 10:22:15 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-12-16 14:31:32 +0000
commitd7594fd2ae08b636f41b71a4a54a7764d8e50fa5 (patch)
tree36bc2ca4781eb4e28dce518e4e12574ddcd8b177
parent5e12af758777c4c87fd8dfa1721f7c673817e133 (diff)
downloadpoky-d7594fd2ae08b636f41b71a4a54a7764d8e50fa5.tar.gz
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) (From OE-Core rev: 6e0b9214a0d57ed45a5df0ba5c9887a9045b89b1) (From OE-Core rev: bddb09a411ce69f49a37260e2188bbd9b02f5902) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/selftest/cases/buildoptions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/buildoptions.py b/meta/lib/oeqa/selftest/cases/buildoptions.py
index 9b87e7fcfc..c3c90a0b0d 100644
--- a/meta/lib/oeqa/selftest/cases/buildoptions.py
+++ b/meta/lib/oeqa/selftest/cases/buildoptions.py
@@ -38,6 +38,7 @@ class ImageOptionsTests(OESelftestTestCase):
38 self.assertTrue(os.path.isfile(p), msg = "No ccache found (%s)" % p) 38 self.assertTrue(os.path.isfile(p), msg = "No ccache found (%s)" % p)
39 self.write_config('INHERIT += "ccache"') 39 self.write_config('INHERIT += "ccache"')
40 self.add_command_to_tearDown('bitbake -c clean m4') 40 self.add_command_to_tearDown('bitbake -c clean m4')
41 bitbake("m4 -c clean")
41 bitbake("m4 -f -c compile") 42 bitbake("m4 -f -c compile")
42 log_compile = os.path.join(get_bb_var("WORKDIR","m4"), "temp/log.do_compile") 43 log_compile = os.path.join(get_bb_var("WORKDIR","m4"), "temp/log.do_compile")
43 with open(log_compile, "r") as f: 44 with open(log_compile, "r") as f: