summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-06-29 19:28:31 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-17 10:35:44 +0100
commit09b9a4aeee454148a97ebe2a872b8c3f52adcb9a (patch)
treebdb35ec6cad33a1b05ca1405dd424c178b5ea511 /scripts
parent3acf648f58b892ddee95c50cf57b7c4b4d10d74c (diff)
downloadpoky-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-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: