File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -260,7 +260,7 @@ report_info()
260260obtain_avg ()
261261{
262262 FIELD=${1}
263- value=` cat fio-result.txt | jq ' .. | select(type == "object" and has(' \" $FIELD \" ' )).' \" $FIELD \" ' ' `
263+ value=` cat fio-results.json | jq ' .. | select(type == "object" and has(' \" $FIELD \" ' )).' \" $FIELD \" ' ' `
264264 nitems=0
265265 calc=" scale=2;("
266266 field_separ=" "
@@ -281,7 +281,7 @@ obtain_avg()
281281obtain_avg_lat ()
282282{
283283 FIELD=${1}
284- value=` cat fio-result.txt | jq ' .. | select(type == "object" and has(' \" $FIELD \" ' )).' \" $FIELD \" ' .mean' `
284+ value=` cat fio-results.json | jq ' .. | select(type == "object" and has(' \" $FIELD \" ' )).' \" $FIELD \" ' .mean' `
285285 nitems=0
286286 calc=" scale=2;("
287287 field_separ=" "
@@ -680,9 +680,9 @@ loop_io_tests()
680680 build_run_file $ios $ioe $iodepth $njobs $run_time $disk_list $io_test
681681 cp /tmp/fio_run ${out_dir} /file_run_${test_index}
682682 let " test_index=${test_index} +1"
683- fio --output-format=json /tmp/fio_run >> $rdir /fio-result.txt
683+ fio --output-format=json /tmp/fio_run >> $rdir /fio-results.json
684684 mv * .log $rdir # preserve raw data
685- lines=` wc -l $rdir /fio-result.txt | cut -d' ' -f 1`
685+ lines=` wc -l $rdir /fio-results.json | cut -d' ' -f 1`
686686 if [ $lines -lt 2 ]; then
687687 run_results=" Failed"
688688 fi
You can’t perform that action at this time.
0 commit comments