From cea939a5b11bd035f87232e0f3178d832dcbdf1f Mon Sep 17 00:00:00 2001 From: Kaushal M Date: Sat, 29 Dec 2012 12:43:59 +0530 Subject: 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 Reviewed-on: http://review.gluster.org/4355 Reviewed-by: Krutika Dhananjay Tested-by: Gluster Build System Reviewed-by: Anand Avati --- tests/bugs/bug-861542.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/bugs') 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 and sed -r 's//&\n/;s/<\/port>/\n&/;s/^.*\n(.*)\n.*$/\1/'| \ grep -v xml | tr -d '\n'; -- cgit