From 73c89ab411102bb4627505de7a617ee8fe372657 Mon Sep 17 00:00:00 2001 From: Maxim Kuvyrkov Date: Thu, 5 Mar 2020 11:18:54 +0000 Subject: 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 --- tcwg_kernel-build.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tcwg_kernel-build.sh') 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 -- cgit v1.2.3