summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKotresh H R <khiremat@redhat.com>2014-07-23 18:12:39 +0530
committerVijay Bellur <vbellur@redhat.com>2014-07-27 13:38:31 -0700
commit195594585eb5f6038bda5f085a773b3f8543962d (patch)
tree239a40e2921361323562467afd8514282bca4c89
parentf8496dab2f6111bdc5ced0881d15061160b76e52 (diff)
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 <khiremat@redhat.com> Reviewed-on: http://review.gluster.org/8362 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
-rw-r--r--tests/bugs/bug-961307.t14
1 files changed, 1 insertions, 13 deletions
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;