summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-861542.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/bug-861542.t')
-rwxr-xr-xtests/bugs/bug-861542.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/bugs/bug-861542.t b/tests/bugs/bug-861542.t
index f4fd4e52a58..70fd12239e2 100755
--- a/tests/bugs/bug-861542.t
+++ b/tests/bugs/bug-861542.t
@@ -30,8 +30,7 @@ function xml_port_field()
local opt=$2;
$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';
+ sed -rn 's/<port>/&###/;s/<\/port>/###&/;s/^.*###(.*)###.*$/\1/p'
}
TEST $CLI volume status $V0;