diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2016-06-29 19:28:31 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-08-17 10:35:44 +0100 |
commit | 09b9a4aeee454148a97ebe2a872b8c3f52adcb9a (patch) | |
tree | bdb35ec6cad33a1b05ca1405dd424c178b5ea511 /scripts | |
parent | 3acf648f58b892ddee95c50cf57b7c4b4d10d74c (diff) | |
download | poky-09b9a4aeee454148a97ebe2a872b8c3f52adcb9a.tar.gz |
oeqa.buildperf: add BuildPerfTestResult class
The new class is derived from unittest.TextTestResult class. It is
actually implemented by modifying the old BuildPerfTestRunner class
which, in turn, is replaced by a totally new simple implementation
derived from unittest.TestRunner.
(From OE-Core rev: 89eb37ef1ef8d5deb87fd55c9ea7b2cfa2681b07)
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>
Diffstat (limited to 'scripts')
-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: |