From 09b9a4aeee454148a97ebe2a872b8c3f52adcb9a Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Wed, 29 Jun 2016 19:28:31 +0300 Subject: 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 Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- scripts/oe-build-perf-test | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'scripts/oe-build-perf-test') 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: -- cgit v1.2.3-54-g00ecf