From f6bbdfa76fd1628c7207c5fda6d8d6db98f2cf9c Mon Sep 17 00:00:00 2001 From: jcfp Date: Sat, 27 May 2017 10:32:30 +0200 Subject: [PATCH] fix api_report test latency check --- tests/t/api_reports.t | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/t/api_reports.t b/tests/t/api_reports.t index 3c6827f..6243f0b 100644 --- a/tests/t/api_reports.t +++ b/tests/t/api_reports.t @@ -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 },