diff options
| author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2017-04-03 18:58:38 +0300 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-05 23:22:13 +0100 |
| commit | 7e7c31fd00783c5a27ae4b847356b9afee26a610 (patch) | |
| tree | a3a597a4bb362606daedfd4de7ff358d97b8f8a2 /scripts/contrib/build-perf-test-wrapper.sh | |
| parent | 5576ce2de363a31d944b43514968c8b31abbcb40 (diff) | |
| download | poky-7e7c31fd00783c5a27ae4b847356b9afee26a610.tar.gz | |
build-perf-test-wrapper.sh: support pushing to remote Git
Implement new '-P' option for spefifying a Git remote where to push
results after committing to a local Git repository.
(From OE-Core rev: d8e14df29d28bfe805dc746f43c9f3a7726e57ce)
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/contrib/build-perf-test-wrapper.sh')
| -rwxr-xr-x | scripts/contrib/build-perf-test-wrapper.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/scripts/contrib/build-perf-test-wrapper.sh index e804ac24cc..c8471977d2 100755 --- a/scripts/contrib/build-perf-test-wrapper.sh +++ b/scripts/contrib/build-perf-test-wrapper.sh | |||
| @@ -32,6 +32,7 @@ Optional arguments: | |||
| 32 | -c COMMITISH test (checkout) this commit, <branch>:<commit> can be | 32 | -c COMMITISH test (checkout) this commit, <branch>:<commit> can be |
| 33 | specified to test specific commit of certain branch | 33 | specified to test specific commit of certain branch |
| 34 | -C GIT_REPO commit results into Git | 34 | -C GIT_REPO commit results into Git |
| 35 | -P GIT_REMOTE push results to a remote Git repository | ||
| 35 | -w WORK_DIR work dir for this script | 36 | -w WORK_DIR work dir for this script |
| 36 | (default: GIT_TOP_DIR/build-perf-test) | 37 | (default: GIT_TOP_DIR/build-perf-test) |
| 37 | -x create xml report (instead of json) | 38 | -x create xml report (instead of json) |
| @@ -42,7 +43,8 @@ EOF | |||
| 42 | # Parse command line arguments | 43 | # Parse command line arguments |
| 43 | commitish="" | 44 | commitish="" |
| 44 | oe_build_perf_test_extra_opts=() | 45 | oe_build_perf_test_extra_opts=() |
| 45 | while getopts "ha:c:C:w:x" opt; do | 46 | oe_git_archive_extra_opts=() |
| 47 | while getopts "ha:c:C:P:w:x" opt; do | ||
| 46 | case $opt in | 48 | case $opt in |
| 47 | h) usage | 49 | h) usage |
| 48 | exit 0 | 50 | exit 0 |
| @@ -53,6 +55,8 @@ while getopts "ha:c:C:w:x" opt; do | |||
| 53 | ;; | 55 | ;; |
| 54 | C) results_repo=`realpath -s "$OPTARG"` | 56 | C) results_repo=`realpath -s "$OPTARG"` |
| 55 | ;; | 57 | ;; |
| 58 | P) oe_git_archive_extra_opts+=("--push" "$OPTARG") | ||
| 59 | ;; | ||
| 56 | w) base_dir=`realpath -s "$OPTARG"` | 60 | w) base_dir=`realpath -s "$OPTARG"` |
| 57 | ;; | 61 | ;; |
| 58 | x) oe_build_perf_test_extra_opts+=("--xml") | 62 | x) oe_build_perf_test_extra_opts+=("--xml") |
| @@ -172,6 +176,7 @@ if [ -n "$results_repo" ]; then | |||
| 172 | --tag-name "{hostname}/{branch}/{machine}/{commit_count}-g{commit}/{tag_number}" \ | 176 | --tag-name "{hostname}/{branch}/{machine}/{commit_count}-g{commit}/{tag_number}" \ |
| 173 | --exclude "buildstats.json" \ | 177 | --exclude "buildstats.json" \ |
| 174 | --notes "buildstats/{branch_name}" "$results_dir/buildstats.json" \ | 178 | --notes "buildstats/{branch_name}" "$results_dir/buildstats.json" \ |
| 179 | "${oe_git_archive_extra_opts[@]}" \ | ||
| 175 | "$results_dir" | 180 | "$results_dir" |
| 176 | fi | 181 | fi |
| 177 | 182 | ||
