diff options
author | Jose Perez Carranza <jose.perez.carranza@linux.intel.com> | 2017-07-25 13:06:28 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-25 23:15:53 +0100 |
commit | 859d9a477a784b8f678d679de3284d56f718069c (patch) | |
tree | fef96020940a08026b3605a5b1f8d86a16784770 /meta/lib/oeqa/buildperf/base.py | |
parent | f7eb49e5db69b4f75105434d427b1cf67719bb0a (diff) | |
download | poky-859d9a477a784b8f678d679de3284d56f718069c.tar.gz |
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 <jose.perez.carranza@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/buildperf/base.py')
-rw-r--r-- | meta/lib/oeqa/buildperf/base.py | 1 |
1 files changed, 1 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() |