summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-861542.t
diff options
context:
space:
mode:
authorKaushal M <kaushal@redhat.com>2012-12-29 12:43:59 +0530
committerAnand Avati <avati@redhat.com>2013-01-16 23:59:48 -0800
commitcea939a5b11bd035f87232e0f3178d832dcbdf1f (patch)
tree46d2917284035184e1166dc0fb647145abe00861 /tests/bugs/bug-861542.t
parentb445678d03b5ad18f85b025f72384b9a343ec9ee (diff)
cli: output xml in pretty format
Gluster cli now prints XML outputs in 'pretty' format. This solves the problem of empty elements occuring as two tags instead of being collapsed into one. Change-Id: Iab7aeadcff29c18ae388b58e446a16e937ac09ed BUG: 849293 Signed-off-by: Kaushal M <kaushal@redhat.com> Reviewed-on: http://review.gluster.org/4355 Reviewed-by: Krutika Dhananjay <kdhananj@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests/bugs/bug-861542.t')
-rwxr-xr-xtests/bugs/bug-861542.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bugs/bug-861542.t b/tests/bugs/bug-861542.t
index 8aef8146ece..5fd08f12d02 100755
--- a/tests/bugs/bug-861542.t
+++ b/tests/bugs/bug-861542.t
@@ -28,7 +28,7 @@ function xml_port_field()
{
local vol=$1;
local opt=$2;
- $CLI --xml volume status $vol $opt | \
+ $CLI --xml volume status $vol $opt | tr -d '\n' |\
#Find the first occurrence of the string between <port> and </port>
sed -r 's/<port>/&\n/;s/<\/port>/\n&/;s/^.*\n(.*)\n.*$/\1/'| \
grep -v xml | tr -d '\n';