mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 12:32:12 +02:00
oeqa.buildperf: archive build/conf into test results
Have the build/conf directory as part of test results. (From OE-Core rev: ea32a8a65f668450e0ec0e80483bd5e8c91b8a18) Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
da3b9242fc
commit
5599645d33
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user