summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/contrib/build-perf-test-wrapper.sh18
1 files changed, 12 insertions, 6 deletions
diff --git a/scripts/contrib/build-perf-test-wrapper.sh b/scripts/contrib/build-perf-test-wrapper.sh
index a4c19290a7..7788bb1d1a 100755
--- a/scripts/contrib/build-perf-test-wrapper.sh
+++ b/scripts/contrib/build-perf-test-wrapper.sh
@@ -48,8 +48,7 @@ while getopts "ha:c:C:w:" opt; do
48 ;; 48 ;;
49 c) commitish=$OPTARG 49 c) commitish=$OPTARG
50 ;; 50 ;;
51 C) results_repo=`realpath "$OPTARG"` 51 C) results_repo=`realpath -s "$OPTARG"`
52 commit_results=("--commit-results" "$results_repo")
53 ;; 52 ;;
54 w) base_dir=`realpath "$OPTARG"` 53 w) base_dir=`realpath "$OPTARG"`
55 ;; 54 ;;
@@ -130,10 +129,17 @@ fi
130# Run actual test script 129# Run actual test script
131oe-build-perf-test --out-dir "$results_dir" \ 130oe-build-perf-test --out-dir "$results_dir" \
132 --globalres-file "$globalres_log" \ 131 --globalres-file "$globalres_log" \
133 --lock-file "$base_dir/oe-build-perf.lock" \ 132 --lock-file "$base_dir/oe-build-perf.lock"
134 "${commit_results[@]}" \ 133
135 --commit-results-branch "{tester_host}/{git_branch}/$machine" \ 134# Commit results to git
136 --commit-results-tag "{tester_host}/{git_branch}/$machine/{git_commit_count}-g{git_commit}/{tag_num}" 135if [ -n "$results_repo" ]; then
136 echo -e "\nArchiving results in $results_repo"
137 oe-git-archive \
138 --git-dir "$results_repo" \
139 --branch-name "{hostname}/{branch}/{machine}" \
140 --tag-name "{hostname}/{branch}/{machine}/{commit_count}-g{commit}/{tag_number}" \
141 "$results_dir"
142fi
137 143
138case $? in 144case $? in
139 1) echo "ERROR: oe-build-perf-test script failed!" 145 1) echo "ERROR: oe-build-perf-test script failed!"