diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2017-03-24 16:17:25 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-27 08:15:06 +0100 |
commit | 7132f540419af42e09acdd00a1fa62a44408d68d (patch) | |
tree | bbe6154afe1adebbb576873331511631e105623e /meta/lib/oeqa/buildperf/test_basic.py | |
parent | 867c2dcbd76b7cfadf03e5237b19d5cbd892dd0d (diff) | |
download | poky-7132f540419af42e09acdd00a1fa62a44408d68d.tar.gz |
oe-build-perf-test: pack all buildstat in one file
Write out all buildstats into one big json file, instead of using
multiple per-measurement files. Individual buildstats will be indexed
using "<test_name>.<measurement_name>" as the key. Also, changes the
per-testcase working directories into temporary directories that will be
removed after test execution as there are no more per-testcase data files
to store permanently.
[YOCTO #10582]
(From OE-Core rev: a7f2e8915db379021f3409ca640de5d3b054a830)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/buildperf/test_basic.py')
-rw-r--r-- | meta/lib/oeqa/buildperf/test_basic.py | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/meta/lib/oeqa/buildperf/test_basic.py b/meta/lib/oeqa/buildperf/test_basic.py index 1333407a65..a9e4a5b731 100644 --- a/meta/lib/oeqa/buildperf/test_basic.py +++ b/meta/lib/oeqa/buildperf/test_basic.py | |||
@@ -51,21 +51,19 @@ class Test1P3(BuildPerfTestCase): | |||
51 | 51 | ||
52 | def test13(self): | 52 | def test13(self): |
53 | """Build core-image-sato with rm_work enabled""" | 53 | """Build core-image-sato with rm_work enabled""" |
54 | postfile = os.path.join(self.out_dir, 'postfile.conf') | 54 | postfile = os.path.join(self.tmp_dir, 'postfile.conf') |
55 | with open(postfile, 'w') as fobj: | 55 | with open(postfile, 'w') as fobj: |
56 | fobj.write('INHERIT += "rm_work"\n') | 56 | fobj.write('INHERIT += "rm_work"\n') |
57 | try: | 57 | |
58 | self.rm_tmp() | 58 | self.rm_tmp() |
59 | self.rm_sstate() | 59 | self.rm_sstate() |
60 | self.rm_cache() | 60 | self.rm_cache() |
61 | self.sync() | 61 | self.sync() |
62 | cmd = ['bitbake', '-R', postfile, self.build_target] | 62 | cmd = ['bitbake', '-R', postfile, self.build_target] |
63 | self.measure_cmd_resources(cmd, 'build', | 63 | self.measure_cmd_resources(cmd, 'build', |
64 | 'bitbake' + self.build_target, | 64 | 'bitbake' + self.build_target, |
65 | save_bs=True) | 65 | save_bs=True) |
66 | self.measure_disk_usage(self.bb_vars['TMPDIR'], 'tmpdir', 'tmpdir') | 66 | self.measure_disk_usage(self.bb_vars['TMPDIR'], 'tmpdir', 'tmpdir') |
67 | finally: | ||
68 | os.unlink(postfile) | ||
69 | 67 | ||
70 | 68 | ||
71 | class Test2(BuildPerfTestCase): | 69 | class Test2(BuildPerfTestCase): |