Skip to content

Commit

Permalink
calc_overall_stats: write min/max/avg/dev stats also in startup resul…
Browse files Browse the repository at this point in the history
…t list

Signed-off-by: Paolo Valente <[email protected]>
  • Loading branch information
Algodev-github committed Oct 23, 2019
1 parent 4f3faa3 commit 93fa440
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utilities/calc_overall_stats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -475,13 +475,14 @@ function per_subdirectory_loop
target_field=$(tail -n 1 $out_file |\
awk '{print $'$field_num'}')

all_stats_fields=`tail -n 1 $out_file | awk '{print $1 " " $2 " " $3 " " $4}'`

if [[ "$target_field" == "" || \
! "$target_field" =~ ^[0-9]+(\.[0-9]+)?$ ]]; then
target_field=X
echo " fail $target_field $UOM" \
>> $res_list_file
echo " fail" >> $res_list_file
else
echo " pass $target_field $UOM" \
echo " pass $all_stats_fields $UOM" \
>> $res_list_file
fi

Expand Down

0 comments on commit 93fa440

Please sign in to comment.