Skip to content

Commit 2e37d35

Browse files
authored
Merge pull request #23 from redhat-performance/add_res_check
Initial results checking
2 parents 357e0cd + b57d739 commit 2e37d35

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

fio/fio_run

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,21 @@ execute_test()
844844
additional_info=`echo $additional_info | cut -d' ' -f 1`
845845
results_prefix=$additional_info"user_"$to_puser"_instance_"$to_sysname"_numb_disks_"$numb_disks"_"$tuning_info
846846
user=$additional_info"user_"$to_user"_instance_"$to_sysname"_numb_disks_"$numb_disks
847+
pushd $working_dir > /dev/null
848+
if [[ ! -f results_fio.csv ]]; then
849+
echo Failed, results_fio.csv missing >> test_results_report
850+
else
851+
value=`head -2 results_fio.csv | tail -1`
852+
jobs=`echo $value | cut -d':' -f 1`
853+
tput=`echo $value | cut -d':' -f 4 | cut -d'.' -f 1`
854+
855+
if [[ $jobs -gt 0 ]] && [[ $tput -gt 0 ]]; then
856+
echo Ran >> test_results_report
857+
else
858+
echo Failed >> test_results_report
859+
fi
860+
fi
861+
popd > /dev/null
847862

848863
if [ $to_pbench -eq 1 ]; then
849864
cd /var/lib/pbench-agent/

0 commit comments

Comments
 (0)