summaryrefslogtreecommitdiff
path: root/tcwg_kernel-build.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-03-05 11:18:54 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2020-03-11 10:23:24 +0000
commit73c89ab411102bb4627505de7a617ee8fe372657 (patch)
treebf73c4da7956978bef68f3c40a81d7f3ab358a6e /tcwg_kernel-build.sh
parent170d72fbc6ea94f1224e460d2e34a6b13f018f0a (diff)
Add annotations to round-robin's "results" file
Annotations provide human-readable comments and data on regressions. For this we ignore all lines in "results" file starting with "#". Change-Id: I31328fe2c13895a7379137b00891a9d2fc0a39d7
Diffstat (limited to 'tcwg_kernel-build.sh')
-rwxr-xr-xtcwg_kernel-build.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tcwg_kernel-build.sh b/tcwg_kernel-build.sh
index f23bae86..5469c7ea 100755
--- a/tcwg_kernel-build.sh
+++ b/tcwg_kernel-build.sh
@@ -165,11 +165,11 @@ build_linux ()
# Number of .o files created is the main success metric.
local linux_n_obj
linux_n_obj=$(find linux -name "*.o" | wc -l)
- echo "linux_n_obj:" >> ${rr[top_artifacts]}/results
+ echo "# linux_n_obj:" >> ${rr[top_artifacts]}/results
echo "$linux_n_obj" >> ${rr[top_artifacts]}/results
if [ $res = 0 ]; then
- echo "linux build successful:" >> ${rr[top_artifacts]}/results
+ echo "# linux build successful:" >> ${rr[top_artifacts]}/results
echo "all" >> ${rr[top_artifacts]}/results
fi
@@ -200,7 +200,7 @@ boot_linux ()
-serial stdio -display none \
-append "console=ttyAMA0 panic=-1" -no-reboot
- echo "linux boot successful:" >> ${rr[top_artifacts]}/results
+ echo "# linux boot successful:" >> ${rr[top_artifacts]}/results
echo "boot" >> ${rr[top_artifacts]}/results
)
}
@@ -215,12 +215,12 @@ no_regression_p ()
local new_artifacts=$2
local linux_n_obj
- linux_n_obj=$(tail -n1 $new_artifacts/results)
+ linux_n_obj=$(grep -v "^#" $new_artifacts/results | tail -n1)
# Assume worst for non-existent baseline.
local base_linux_n_obj="-10"
if [ -f $ref_artifacts/results ]; then
- base_linux_n_obj=$(tail -n1 $ref_artifacts/results)
+ base_linux_n_obj=$(grep -v "^#" $ref_artifacts/results | tail -n1)
fi
# In log scan for errors below