From 859d9a477a784b8f678d679de3284d56f718069c Mon Sep 17 00:00:00 2001 From: Jose Perez Carranza Date: Tue, 25 Jul 2017 13:06:28 -0700 Subject: oeqa/buildperf: Add 'bitbake -m' on sync function to ensure bitbake is unloaded 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. (From OE-Core rev: 9210c9ce051dfffaa7afa36bb4a926cea289ffd4) Signed-off-by: Jose Perez Carranza Signed-off-by: Richard Purdie --- meta/lib/oeqa/buildperf/base.py | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/lib/oeqa/buildperf/base.py') 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): @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() -- cgit v1.2.3-54-g00ecf