summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2016-08-12 13:53:48 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-08-25 23:03:47 +0100
commit8335422b001713a7137e9cfdc0870138b120da8e (patch)
treeaf347a4d12f67b579a09f1b3d65039c8655aa6a1 /scripts
parent66540ae5c102449ca7417750ce8cdff38e6c801c (diff)
downloadpoky-8335422b001713a7137e9cfdc0870138b120da8e.tar.gz
oe-build-perf-test: support committing results data to Git
Implement a new command line option '--commit-results' which commits the test results data into a Git repository. The given path must be an existing initialized local Git repository. (From OE-Core rev: b6f635513ca971402e7a970acc2168fb5d4a9476) 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-test5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/oe-build-perf-test b/scripts/oe-build-perf-test
index 21759c6786..d6ea5ce685 100755
--- a/scripts/oe-build-perf-test
+++ b/scripts/oe-build-perf-test
@@ -109,6 +109,9 @@ def parse_args(argv):
109 help="Output directory for test results") 109 help="Output directory for test results")
110 parser.add_argument('--run-tests', nargs='+', metavar='TEST', 110 parser.add_argument('--run-tests', nargs='+', metavar='TEST',
111 help="List of tests to run") 111 help="List of tests to run")
112 parser.add_argument('--commit-results', metavar='GIT_DIR',
113 type=os.path.abspath,
114 help="Commit result data to a (local) git repository")
112 115
113 return parser.parse_args(argv) 116 return parser.parse_args(argv)
114 117
@@ -158,6 +161,8 @@ def main(argv=None):
158 if result.wasSuccessful(): 161 if result.wasSuccessful():
159 if args.globalres_file: 162 if args.globalres_file:
160 result.update_globalres_file(args.globalres_file) 163 result.update_globalres_file(args.globalres_file)
164 if args.commit_results:
165 result.git_commit_results(args.commit_results)
161 return 0 166 return 0
162 167
163 return 1 168 return 1