]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/buildperf: Add 'bitbake -m' on sync function to ensure bitbake is unloaded
authorJose Perez Carranza <jose.perez.carranza@linux.intel.com>
Tue, 25 Jul 2017 20:06:28 +0000 (13:06 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Jul 2017 22:14:48 +0000 (23:14 +0100)
Add 'bitbake -m' to the sync method and ensure all process related to
bitbake are correctly unloaded before doing the different measurements.
Also add a call to sync funtion on Test4 before final measurment of
eSDK deploy dir disk usage.

Signed-off-by: Jose Perez Carranza <jose.perez.carranza@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/buildperf/base.py
meta/lib/oeqa/buildperf/test_basic.py

index 6e62b279c1dc383ed3fabdd5434412b228c8d8b1..7b2b4aa2a4091acab229259f0947386c148e88e1 100644 (file)
@@ -485,6 +485,7 @@ class BuildPerfTestCase(unittest.TestCase):
     @staticmethod
     def sync():
         """Sync and drop kernel caches"""
+        runCmd2('bitbake -m', ignore_status=True)
         log.debug("Syncing and dropping kernel caches""")
         KernelDropCaches.drop()
         os.sync()
index a9e4a5b731ab13efae628c0a9478e43dd4ffc8fe..a19089a6ed24e2ed3cbb39b8a52ed655baba35d0 100644 (file)
@@ -121,5 +121,7 @@ class Test4(BuildPerfTestCase):
         self.sync()
         self.measure_cmd_resources([installer, '-y', '-d', deploy_dir],
                                    'deploy', 'eSDK deploy')
+        #make sure bitbake is unloaded
+        self.sync()
         self.measure_disk_usage(deploy_dir, 'deploy_dir', 'deploy dir',
                                 apparent_size=True)