]> code.ossystems Code Review - openembedded-core.git/commitdiff
build-perf-test-wrapper.sh: use oe-git-archive
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 3 Feb 2017 17:53:55 +0000 (19:53 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 16 Feb 2017 04:06:27 +0000 (20:06 -0800)
Start to use the new helper script for archiving results data in Git.

[YOCTO #10582]

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/contrib/build-perf-test-wrapper.sh

index a4c19290a7f9ca2aa52c470482c608a7001805ad..7788bb1d1a2125781f6ffc7492389ce1cd5d625e 100755 (executable)
@@ -48,8 +48,7 @@ while getopts "ha:c:C:w:" opt; do
             ;;
         c)  commitish=$OPTARG
             ;;
-        C)  results_repo=`realpath "$OPTARG"`
-            commit_results=("--commit-results" "$results_repo")
+        C)  results_repo=`realpath -s "$OPTARG"`
             ;;
         w)  base_dir=`realpath "$OPTARG"`
             ;;
@@ -130,10 +129,17 @@ fi
 # Run actual test script
 oe-build-perf-test --out-dir "$results_dir" \
                    --globalres-file "$globalres_log" \
-                   --lock-file "$base_dir/oe-build-perf.lock" \
-                   "${commit_results[@]}" \
-                   --commit-results-branch "{tester_host}/{git_branch}/$machine" \
-                   --commit-results-tag "{tester_host}/{git_branch}/$machine/{git_commit_count}-g{git_commit}/{tag_num}"
+                   --lock-file "$base_dir/oe-build-perf.lock"
+
+# Commit results to git
+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
     1)  echo "ERROR: oe-build-perf-test script failed!"