summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oeqa/buildperf/base.py1
-rw-r--r--meta/lib/oeqa/buildperf/test_basic.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py
index 6e62b279c1..7b2b4aa2a4 100644
--- a/meta/lib/oeqa/buildperf/base.py
+++ b/meta/lib/oeqa/buildperf/base.py
@@ -485,6 +485,7 @@ class BuildPerfTestCase(unittest.TestCase):
485 @staticmethod 485 @staticmethod
486 def sync(): 486 def sync():
487 """Sync and drop kernel caches""" 487 """Sync and drop kernel caches"""
488 runCmd2('bitbake -m', ignore_status=True)
488 log.debug("Syncing and dropping kernel caches""") 489 log.debug("Syncing and dropping kernel caches""")
489 KernelDropCaches.drop() 490 KernelDropCaches.drop()
490 os.sync() 491 os.sync()
diff --git a/meta/lib/oeqa/buildperf/test_basic.py b/meta/lib/oeqa/buildperf/test_basic.py
index a9e4a5b731..a19089a6ed 100644
--- a/meta/lib/oeqa/buildperf/test_basic.py
+++ b/meta/lib/oeqa/buildperf/test_basic.py
@@ -121,5 +121,7 @@ class Test4(BuildPerfTestCase):
121 self.sync() 121 self.sync()
122 self.measure_cmd_resources([installer, '-y', '-d', deploy_dir], 122 self.measure_cmd_resources([installer, '-y', '-d', deploy_dir],
123 'deploy', 'eSDK deploy') 123 'deploy', 'eSDK deploy')
124 #make sure bitbake is unloaded
125 self.sync()
124 self.measure_disk_usage(deploy_dir, 'deploy_dir', 'deploy dir', 126 self.measure_disk_usage(deploy_dir, 'deploy_dir', 'deploy dir',
125 apparent_size=True) 127 apparent_size=True)