diff options
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): | |||
94 | self.results['start_time'] = start_time | 94 | self.results['start_time'] = start_time |
95 | self.results['tests'] = {} | 95 | self.results['tests'] = {} |
96 | 96 | ||
97 | self.archive_build_conf() | ||
97 | for test_class in self.test_run_queue: | 98 | for test_class in self.test_run_queue: |
98 | log.info("Executing test %s: %s", test_class.name, | 99 | log.info("Executing test %s: %s", test_class.name, |
99 | test_class.description) | 100 | test_class.description) |
@@ -112,6 +113,13 @@ class BuildPerfTestRunner(object): | |||
112 | self.results['elapsed_time'] = datetime.utcnow() - start_time | 113 | self.results['elapsed_time'] = datetime.utcnow() - start_time |
113 | return 0 | 114 | return 0 |
114 | 115 | ||
116 | def archive_build_conf(self): | ||
117 | """Archive build/conf to test results""" | ||
118 | src_dir = os.path.join(os.environ['BUILDDIR'], 'conf') | ||
119 | tgt_dir = os.path.join(self.out_dir, 'build', 'conf') | ||
120 | os.makedirs(os.path.dirname(tgt_dir)) | ||
121 | shutil.copytree(src_dir, tgt_dir) | ||
122 | |||
115 | 123 | ||
116 | def perf_test_case(obj): | 124 | def perf_test_case(obj): |
117 | """Decorator for adding test classes""" | 125 | """Decorator for adding test classes""" |