build-perf-test-wrapper.sh: use oe-git-archive

Start to use the new helper script for archiving results data in Git.

[YOCTO #10582]

(From OE-Core rev: 3d8a1df37407686ed699485c37c8517f1d79755d)

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>
This commit is contained in:
Markus Lehtonen 2017-02-03 19:53:55 +02:00 committed by Richard Purdie
parent 3c862c647c
commit 37c9f3f180
1 changed files with 12 additions and 6 deletions

View File

@ -48,8 +48,7 @@ while getopts "ha:c:C:w:" opt; do
;; ;;
c) commitish=$OPTARG c) commitish=$OPTARG
;; ;;
C) results_repo=`realpath "$OPTARG"` C) results_repo=`realpath -s "$OPTARG"`
commit_results=("--commit-results" "$results_repo")
;; ;;
w) base_dir=`realpath "$OPTARG"` w) base_dir=`realpath "$OPTARG"`
;; ;;
@ -130,10 +129,17 @@ fi
# Run actual test script # Run actual test script
oe-build-perf-test --out-dir "$results_dir" \ oe-build-perf-test --out-dir "$results_dir" \
--globalres-file "$globalres_log" \ --globalres-file "$globalres_log" \
--lock-file "$base_dir/oe-build-perf.lock" \ --lock-file "$base_dir/oe-build-perf.lock"
"${commit_results[@]}" \
--commit-results-branch "{tester_host}/{git_branch}/$machine" \ # Commit results to git
--commit-results-tag "{tester_host}/{git_branch}/$machine/{git_commit_count}-g{git_commit}/{tag_num}" if [ -n "$results_repo" ]; then
echo -e "\nArchiving results in $results_repo"
oe-git-archive \
--git-dir "$results_repo" \
--branch-name "{hostname}/{branch}/{machine}" \
--tag-name "{hostname}/{branch}/{machine}/{commit_count}-g{commit}/{tag_number}" \
"$results_dir"
fi
case $? in case $? in
1) echo "ERROR: oe-build-perf-test script failed!" 1) echo "ERROR: oe-build-perf-test script failed!"