From d83f9f467e47275e03d1fa979eed19960c9ef3bf Mon Sep 17 00:00:00 2001 From: Shreyas Siravara Date: Mon, 6 Jun 2016 09:30:04 -0700 Subject: debug/io-stats: Add errors to FOP samples Summary: - Captures the error of an operation in the FOP sample. - Cherry-pick of D3306106 to io-stats Signed-off-by: Shreyas Siravara Change-Id: Ia32a5b34bbd36981ac693a8829c70fa74b02d38d Reviewed-on: http://review.gluster.org/16175 Tested-by: Shreyas Siravara NetBSD-regression: NetBSD Build System Smoke: Gluster Build System CentOS-regression: Gluster Build System Reviewed-by: Kevin Vigor --- tests/basic/fop-sampling.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/basic') diff --git a/tests/basic/fop-sampling.t b/tests/basic/fop-sampling.t index 44fdb5aa93d..713c7e27579 100644 --- a/tests/basic/fop-sampling.t +++ b/tests/basic/fop-sampling.t @@ -12,7 +12,7 @@ function check_path { op=$1 path=$2 file=$3 - grep $op $file | awk -F, '{print $NF}' | grep $path 2>&1 > /dev/null + grep $op $file | awk -F, '{print $11}' | grep $path 2>&1 > /dev/null if [ $? -eq 0 ]; then echo "Y" else -- cgit