fix api_report test latency check

This commit is contained in:
jcfp
2017-05-27 10:32:30 +02:00
committed by Alexey Kopytov
parent fd34a95595
commit f6bbdfa76f

View File

@ -21,8 +21,8 @@ Tests for custom report hooks
> EOF
$ sysbench $SB_ARGS run
[ 2s ] thds: 1 tps: *.* qps: 0.00 (r/w/o: 0.00/0.00/0.00) lat (ms,95%): 1.* err/s 0.00 reconn/s: 0.00 (glob)
[ 3s ] thds: 0 tps: *.* qps: 0.00 (r/w/o: 0.00/0.00/0.00) lat (ms,95%): 1.* err/s 0.00 reconn/s: 0.00 (glob)
\[ 2s \] thds: 1 tps: [0-9]*\.[0-9]* qps: 0\.00 \(r\/w\/o: 0\.00\/0\.00\/0\.00\) lat \(ms,95%\): [1-9][0-9]*\.[0-9]* err\/s 0\.00 reconn\/s: 0\.00 (re)
\[ 3s \] thds: 0 tps: [0-9]*\.[0-9]* qps: 0\.00 \(r\/w\/o: 0\.00\/0\.00\/0\.00\) lat \(ms,95%\): [1-9][0-9]*\.[0-9]* err\/s 0\.00 reconn\/s: 0\.00 (re)
########################################################################
# CSV format via a custom hook
@ -40,8 +40,8 @@ Tests for custom report hooks
> EOF
$ sysbench $SB_ARGS run
2,1,*.*,0.00,0.00,0.00,0.00,1.*,0.00,0.00 (glob)
3,0,*.*,0.00,0.00,0.00,0.00,1.*,0.00,0.00 (glob)
2,1,[0-9]*\.[0-9]*,0\.00,0\.00,0\.00,0\.00,[1-9][0-9]*\.[0-9]*,0\.00,0\.00 (re)
3,0,[0-9]*\.[0-9]*,0\.00,0\.00,0\.00,0\.00,[1-9][0-9]*\.[0-9]*,0\.00,0\.00 (re)
########################################################################
# JSON format via a custom hook
@ -69,7 +69,7 @@ Tests for custom report hooks
"writes": 0.00,
"other": 0.00,
},
"latency": 1.*, (glob)
"latency": [1-9][0-9]*\.[0-9]*, (re)
"errors": 0.00,
"reconnects": 0.00
},
@ -83,7 +83,7 @@ Tests for custom report hooks
"writes": 0.00,
"other": 0.00,
},
"latency": 1.*, (glob)
"latency": [1-9][0-9]*\.[0-9]*, (re)
"errors": 0.00,
"reconnects": 0.00
},