summaryrefslogtreecommitdiff
path: root/tcwg_bmk-build.sh
diff options
context:
space:
mode:
authorLaurent Alfonsi <laurent.alfonsi@linaro.org>2023-08-01 11:48:45 +0200
committerLaurent Alfonsi <laurent.alfonsi@linaro.org>2023-08-01 18:54:52 +0000
commit234058075cd64cc44f1e8512a75f485f49e57e5f (patch)
tree58418260d39e0d3029bc4b3483b93ec8c229ea2d /tcwg_bmk-build.sh
parentfe9e0f8bc467c36475fc0fc4ace27aba66eb6d13 (diff)
tcwg_bmk-build.sh: Fix bmk bisects.
First baseline run (successful) needs to be used as a reference. but the results, are not pushed to bkp-01. In that case, in tested runs, we want to use reference bmk results directly from base-artifacts directory Change-Id: If9500bfd9a040ee36289ca31cfa98c37e9cef7d0
Diffstat (limited to 'tcwg_bmk-build.sh')
-rwxr-xr-xtcwg_bmk-build.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh
index 490b1e17..9b269105 100755
--- a/tcwg_bmk-build.sh
+++ b/tcwg_bmk-build.sh
@@ -413,6 +413,12 @@ compare_results ()
# or in corner-cases like forced build failing during toolchain build.
# In such cases we compare results to themselves just as an exercise.
ref_results=$new_results
+ elif [ -d base-artifacts/annex/bmk-data ] ; then
+ # If bmk results in part of the baseline, use it.
+ # Usefule for bisect, during bisect, the first successful run, needs to be used as a reference.
+ # It updates the local baseline, but will not push the results to bkp-01.
+ # Use ref_results from baseline if exists.
+ ref_results="base-artifacts/annex/bmk-data"
else
# reference results to be retrieved before applying the comparison
ref_results="bkp-01.tcwglab:/home/tcwg-benchmark/results-$(cat base-artifacts/results_id)"