From 195594585eb5f6038bda5f085a773b3f8543962d Mon Sep 17 00:00:00 2001 From: Kotresh H R Date: Wed, 23 Jul 2014 18:12:39 +0530 Subject: tests/bug-961307.t: echo output string in case of failure for easy debug. Change-Id: I5bb5d7f2d9380da3247588e8eff10b559e17ff3f BUG: 1122533 Signed-off-by: Kotresh H R Reviewed-on: http://review.gluster.org/8362 Tested-by: Gluster Build System Reviewed-by: Pranith Kumar Karampuri Reviewed-by: Vijay Bellur --- tests/bugs/bug-961307.t | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'tests/bugs/bug-961307.t') diff --git a/tests/bugs/bug-961307.t b/tests/bugs/bug-961307.t index 96e93a56f8d..9775c3ad0c9 100644 --- a/tests/bugs/bug-961307.t +++ b/tests/bugs/bug-961307.t @@ -16,17 +16,5 @@ TEST $CLI volume start $V0 var1=$(gluster volume remove-brick $H0:$B0/${V0}-00 $H0:$B0/${V0}-01 start 2>&1) var2="volume remove-brick start: failed: Volume $H0:$B0/${V0}-00 does not exist" - -function compare_string() -{ - val="-1" - if [ "$1" == "$2" ]; then - val="0" - else - val="1" - fi - echo $val -} - -EXPECT 0 compare_string "$var1" "$var2" +EXPECT "$var2" echo "$var1" cleanup; -- cgit