summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Clift <justin@gluster.org>2014-04-03 18:33:19 +0100
committerVijay Bellur <vbellur@redhat.com>2014-04-04 06:29:17 -0700
commit27bc6a07b4c82409845077aed0556114caa8dc99 (patch)
treead78d23f0da60ca45fe21d1a2309ed9c78fe054c
parentca6af761fb63068b170b9e8b1143598af244e06c (diff)
tests: Adjust test 767095 to cope with long hostnames
BUG: 1084147 Change-Id: Ie1ff8852a501690e681072c54620d305b5e20d6a Signed-off-by: Justin Clift <justin@gluster.org> Reviewed-on: http://review.gluster.org/7395 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rwxr-xr-xtests/bugs/bug-767095.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bugs/bug-767095.t b/tests/bugs/bug-767095.t
index a8842bd..82212c7 100755
--- a/tests/bugs/bug-767095.t
+++ b/tests/bugs/bug-767095.t
@@ -31,7 +31,7 @@ TEST $CLI volume set $V0 server.statedump-path $dump_dir;
TEST $CLI volume start $V0;
EXPECT 'Started' volinfo_field $V0 'Status';
-TEST PID=`gluster volume status $V0 | grep patchy1 | awk {'print $5'}`;
+TEST PID=`gluster --xml volume status patchy | grep -A 5 patchy1 | grep '<pid>' | cut -d '>' -f 2 | cut -d '<' -f 1`
TEST kill -USR1 $PID;
sleep 2;
for file_name in $(ls $dump_dir)