diff options
Diffstat (limited to 'scripts/oe-build-perf-test')
-rwxr-xr-x | scripts/oe-build-perf-test | 10 |
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 | |||
19 | import fcntl | 19 | import fcntl |
20 | import logging | 20 | import logging |
21 | import os | 21 | import os |
22 | import shutil | ||
22 | import sys | 23 | import sys |
23 | from datetime import datetime | 24 | from 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 | ||
82 | def 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 | |||
81 | def parse_args(argv): | 90 | def 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: |