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:20 +0100 |
commit | 89eb37ef1ef8d5deb87fd55c9ea7b2cfa2681b07 (patch) | |
tree | 1669edd0c5472e565acfbfdc159d35333abcb1b8 /scripts/oe-build-perf-test | |
parent | b281c4a49b0df1de9b3137efb8ff50744e06c48d (diff) | |
download | openembedded-core-89eb37ef1ef8d5deb87fd55c9ea7b2cfa2681b07.tar.gz openembedded-core-89eb37ef1ef8d5deb87fd55c9ea7b2cfa2681b07.tar.bz2 openembedded-core-89eb37ef1ef8d5deb87fd55c9ea7b2cfa2681b07.zip |
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.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
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 import fcntl import logging import os +import shutil import sys from datetime import datetime @@ -78,6 +79,14 @@ def setup_file_logging(log_file): log.addHandler(handler) +def archive_build_conf(out_dir): + """Archive build/conf to test results""" + src_dir = os.path.join(os.environ['BUILDDIR'], 'conf') + tgt_dir = os.path.join(out_dir, 'build', 'conf') + os.makedirs(os.path.dirname(tgt_dir)) + shutil.copytree(src_dir, tgt_dir) + + def parse_args(argv): """Parse command line arguments""" parser = argparse.ArgumentParser( @@ -120,6 +129,7 @@ def main(argv=None): # Run actual tests runner = BuildPerfTestRunner(out_dir) + archive_build_conf(out_dir) ret = runner.run_tests() if not ret: if args.globalres_file: |