summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2018-12-12 14:44:26 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-14 11:35:55 +0000
commit227aafa1cff4d9e0f9353c4e87b7adc85f603703 (patch)
tree83db6baa18062645dc93e1eab3b03e3877d4b6c8
parent8ac47178d1051e38bdc19c58eb69cd2dc8d728f2 (diff)
downloadpoky-227aafa1cff4d9e0f9353c4e87b7adc85f603703.tar.gz
oeqa/selftest/cases: Update test_ccache_tool
Now we can compile m4-native rather than target m4, this can save a lot of build time. (From OE-Core rev: 8e33cef647f4e8a104da61aecab4ac6c6b9bfd3b) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/selftest/cases/buildoptions.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/lib/oeqa/selftest/cases/buildoptions.py b/meta/lib/oeqa/selftest/cases/buildoptions.py
index 7bbbf76ebd..6a18eb8366 100644
--- a/meta/lib/oeqa/selftest/cases/buildoptions.py
+++ b/meta/lib/oeqa/selftest/cases/buildoptions.py
@@ -37,13 +37,13 @@ class ImageOptionsTests(OESelftestTestCase):
37 p = bb_vars['SYSROOT_DESTDIR'] + bb_vars['bindir'] + "/" + "ccache" 37 p = bb_vars['SYSROOT_DESTDIR'] + bb_vars['bindir'] + "/" + "ccache"
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-native')
41 bitbake("m4 -c clean") 41 bitbake("m4-native -c clean")
42 bitbake("m4 -f -c compile") 42 bitbake("m4-native -f -c compile")
43 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-native"), "temp/log.do_compile")
44 with open(log_compile, "r") as f: 44 with open(log_compile, "r") as f:
45 loglines = "".join(f.readlines()) 45 loglines = "".join(f.readlines())
46 self.assertIn("ccache", loglines, msg="No match for ccache in m4 log.do_compile. For further details: %s" % log_compile) 46 self.assertIn("ccache", loglines, msg="No match for ccache in m4-native log.do_compile. For further details: %s" % log_compile)
47 47
48 @OETestID(1435) 48 @OETestID(1435)
49 def test_read_only_image(self): 49 def test_read_only_image(self):