summaryrefslogtreecommitdiffstats
path: root/scripts/oe-build-perf-test
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/oe-build-perf-test')
-rwxr-xr-xscripts/oe-build-perf-test10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index 996996bc62..8142b0332b 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -19,6 +19,7 @@ import errno
19import fcntl 19import fcntl
20import logging 20import logging
21import os 21import os
22import shutil
22import sys 23import sys
23from datetime import datetime 24from datetime import datetime
24 25
@@ -78,6 +79,14 @@ def setup_file_logging(log_file):
78 log.addHandler(handler) 79 log.addHandler(handler)
79 80
80 81
82def archive_build_conf(out_dir):
83 """Archive build/conf to test results"""
84 src_dir = os.path.join(os.environ['BUILDDIR'], 'conf')
85 tgt_dir = os.path.join(out_dir, 'build', 'conf')
86 os.makedirs(os.path.dirname(tgt_dir))
87 shutil.copytree(src_dir, tgt_dir)
88
89
81def parse_args(argv): 90def parse_args(argv):
82 """Parse command line arguments""" 91 """Parse command line arguments"""
83 parser = argparse.ArgumentParser( 92 parser = argparse.ArgumentParser(
@@ -120,6 +129,7 @@ def main(argv=None):
120 129
121 # Run actual tests 130 # Run actual tests
122 runner = BuildPerfTestRunner(out_dir) 131 runner = BuildPerfTestRunner(out_dir)
132 archive_build_conf(out_dir)
123 ret = runner.run_tests() 133 ret = runner.run_tests()
124 if not ret: 134 if not ret:
125 if args.globalres_file: 135 if args.globalres_file: