summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorShreyas Siravara <sshreyas@fb.com>2016-06-06 09:30:04 -0700
committerKevin Vigor <kvigor@fb.com>2016-12-18 18:29:13 -0800
commitd83f9f467e47275e03d1fa979eed19960c9ef3bf (patch)
tree46ea9553cb4f2d509ddca800c854cb6e11f99231 /tests
parentc07ea000f4d55b191dffde92a1655c736a5258c3 (diff)
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 <sshreyas@fb.com> Change-Id: Ia32a5b34bbd36981ac693a8829c70fa74b02d38d Reviewed-on: http://review.gluster.org/16175 Tested-by: Shreyas Siravara <sshreyas@fb.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> Smoke: Gluster Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.org> Reviewed-by: Kevin Vigor <kvigor@fb.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/basic/fop-sampling.t2
1 files changed, 1 insertions, 1 deletions
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