Skip to content

Commit cb3496d

Browse files
authored
replace .txt with .json
1 parent 6901cb9 commit cb3496d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

fio/fio_run

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ report_info()
260260
obtain_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()
281281
obtain_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

0 commit comments

Comments
 (0)