diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-06-23 18:34:14 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-01 16:08:51 +0100 |
commit | ea32a8a65f668450e0ec0e80483bd5e8c91b8a18 (patch) | |
tree | 8a2ec502e54ea7b9e9a7e8abe7552e58fd0d7ab2 /meta/lib | |
parent | c449ca1b062426380a0572aed2da4ee4a83281f5 (diff) | |
download | openembedded-core-ea32a8a65f668450e0ec0e80483bd5e8c91b8a18.tar.gz openembedded-core-ea32a8a65f668450e0ec0e80483bd5e8c91b8a18.tar.bz2 openembedded-core-ea32a8a65f668450e0ec0e80483bd5e8c91b8a18.zip |
oeqa.buildperf: archive build/conf into test results
Have the build/conf directory as part of test results.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/buildperf/base.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildperf/base.py b/meta/lib/oeqa/buildperf/base.py index 1bfcb71610..c0318a18e0 100644 --- a/meta/lib/oeqa/buildperf/base.py +++ b/meta/lib/oeqa/buildperf/base.py @@ -94,6 +94,7 @@ class BuildPerfTestRunner(object): self.results['start_time'] = start_time self.results['tests'] = {} + self.archive_build_conf() for test_class in self.test_run_queue: log.info("Executing test %s: %s", test_class.name, test_class.description) @@ -112,6 +113,13 @@ class BuildPerfTestRunner(object): self.results['elapsed_time'] = datetime.utcnow() - start_time return 0 + def archive_build_conf(self): + """Archive build/conf to test results""" + src_dir = os.path.join(os.environ['BUILDDIR'], 'conf') + tgt_dir = os.path.join(self.out_dir, 'build', 'conf') + os.makedirs(os.path.dirname(tgt_dir)) + shutil.copytree(src_dir, tgt_dir) + def perf_test_case(obj): """Decorator for adding test classes""" |