Skip to content

Commit

Permalink
Add metadata to results.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvalinrh committed Sep 19, 2024
1 parent 2b4bf2e commit 3ae0bce
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions phoronix/run_phoronix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,22 @@ else
${curdir}/test_tools/move_data $curdir results_${test_name}_${to_tuned_setting}/phoronix_results/results_phoronix
cp /tmp/results_${test_name}_${to_tuned_setting}.out results_${test_name}_${to_tuned_setting}/phoronix_results/results_phoronix
pushd /tmp/results_${test_name}_${to_tuned_setting}/phoronix_results/results_phoronix > /dev/null
$run_dir/reduce_phoronix > results.csv
lines=`wc -l results.csv | cut -d' ' -f 1`
$TOOLS_BIN/test_header_info --front_matter --results_file results.csv --host $to_configuration --sys_type $to_sys_type --tuned $to_tuned_setting --results_version $GIT_VERSION --test_name $test_name
#
# We place the results first in results_check.csv so we can check to make sure
# the tests actually ran. After the check, we will add the run info to results.csv.
#
$run_dir/reduce_phoronix > results_check.csv
lines=`wc -l results_check.csv | cut -d' ' -f 1`
if [[ $lines == "1" ]]; then
#
# We failed, report and do not remove the results_check.csv file.
#
echo Failed >> test_results_report
else
echo Ran >> test_results_report
cat results_check.csv >> results.csv
rm results_check.csv
fi
popd > /dev/null
find -L $RESULTSDIR -type f | tar --transform 's/.*\///g' -cf results_pbench.tar --files-from=/dev/stdin
Expand Down

0 comments on commit 3ae0bce

Please sign in to comment.