From 457bae6911343c2e03222e24d0c946b94dca82b4 Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Wed, 4 Jun 2014 09:59:44 -0700 Subject: [PATCH] Fix regression test Summary: https://github.com/facebook/rocksdb/commit/388d2054c7077d58ea56e08092382d904bec71c7 added extra line to db_bench output, breaking regression tests. This diff makes it more robust and fixes the issue Test Plan: ran it Reviewers: ljin, sdong Reviewed By: sdong Subscribers: sdong, leveldb Differential Revision: https://reviews.facebook.net/D18897 --- build_tools/regression_build_test.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build_tools/regression_build_test.sh b/build_tools/regression_build_test.sh index 58766f5df..82e3380fa 100755 --- a/build_tools/regression_build_test.sh +++ b/build_tools/regression_build_test.sh @@ -308,9 +308,9 @@ function send_benchmark_to_ods { file="$3" QPS=$(grep $bench $file | awk '{print $5}') - P50_MICROS=$(grep $bench $file -A 4 | tail -n1 | awk '{print $3}' ) - P75_MICROS=$(grep $bench $file -A 4 | tail -n1 | awk '{print $5}' ) - P99_MICROS=$(grep $bench $file -A 4 | tail -n1 | awk '{print $7}' ) + P50_MICROS=$(grep $bench $file -A 6 | grep "Percentiles" | awk '{print $3}' ) + P75_MICROS=$(grep $bench $file -A 6 | grep "Percentiles" | awk '{print $5}' ) + P99_MICROS=$(grep $bench $file -A 6 | grep "Percentiles" | awk '{print $7}' ) send_to_ods rocksdb.build.$bench_key.qps $QPS send_to_ods rocksdb.build.$bench_key.p50_micros $P50_MICROS