summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-06-23 18:43:33 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-01 16:08:52 +0100
commite9f18e63220e452f2b0c878998e57d944ae83980 (patch)
tree26aa5f61ac47e0639331ac9e915e691c5349d4b3 /scripts
parente6004582454d8c6a18f617c12e6e408ded5be8df (diff)
downloadopenembedded-core-e9f18e63220e452f2b0c878998e57d944ae83980.tar.gz
openembedded-core-e9f18e63220e452f2b0c878998e57d944ae83980.tar.bz2
openembedded-core-e9f18e63220e452f2b0c878998e57d944ae83980.zip
oe-build-perf-test: implement --globalres-file option
Using this option the script appends test results into a 'global results file'. A CSV-formatted output of the results. This option is to provide compatibility with the old build-perf-test.sh. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/oe-build-perf-test5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index ca90f69e1e..9dd073cdfb 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -70,6 +70,8 @@ def parse_args(argv):
parser.add_argument('-D', '--debug', action='store_true',
help='Enable debug level logging')
+ parser.add_argument('--globalres-file',
+ help="Append results to 'globalres' csv file")
return parser.parse_args(argv)
@@ -94,6 +96,9 @@ def main(argv=None):
# Run actual tests
runner = BuildPerfTestRunner(out_dir)
ret = runner.run_tests()
+ if not ret:
+ if args.globalres_file:
+ runner.update_globalres_file(args.globalres_file)
return ret