]> code.ossystems Code Review - openembedded-core.git/commitdiff
sanity.bbclass: Move sanity_info from conf to cache
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Tue, 7 Jan 2020 22:10:42 +0000 (23:10 +0100)
committerArmin Kuster <akuster808@gmail.com>
Sat, 25 Jan 2020 16:37:48 +0000 (08:37 -0800)
Since this file is written during recipe parsing, having it in the
${BUILDDIR}/conf directory, which is covered by an inotify watcher,
will trigger a re-parse the next time bitbake is run and the resident
bitbake server is enabled. This causes the sanity_info file to be
updated again, which triggers a new parse the next time bitbake is run
ad infinitum. Moving it to ${BUILDDIR}/cache should avoid this.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit f98103b548aa7dba6b1be6c8e02ef41858a8e85c)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/sanity.bbclass
meta/lib/oeqa/buildperf/base.py

index 9429202dcad5e1f0bd66a7c786b373854e353a5d..3b41c69ef6cc10a430dce9dbb488e31b5669bc75 100644 (file)
@@ -919,7 +919,7 @@ def check_sanity(sanity_data):
     last_tmpdir = ""
     last_sstate_dir = ""
     last_nativelsbstr = ""
-    sanityverfile = sanity_data.expand("${TOPDIR}/conf/sanity_info")
+    sanityverfile = sanity_data.expand("${TOPDIR}/cache/sanity_info")
     if os.path.exists(sanityverfile):
         with open(sanityverfile, 'r') as f:
             for line in f:
index 3b2fed549fb7ec9ed4380e063bec09047f5de9c8..5f1805d86c5d01f9617581e36a20ed66cfb7d3e4 100644 (file)
@@ -462,7 +462,7 @@ class BuildPerfTestCase(unittest.TestCase):
     def rm_tmp(self):
         """Cleanup temporary/intermediate files and directories"""
         log.debug("Removing temporary and cache files")
-        for name in ['bitbake.lock', 'conf/sanity_info',
+        for name in ['bitbake.lock', 'cache/sanity_info',
                      self.bb_vars['TMPDIR']]:
             oe.path.remove(name, recurse=True)