summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-961307.t
blob: 96e93a56f8d20b298ea2ae05eef9118fae925145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash

. $(dirname $0)/../include.rc
. $(dirname $0)/../volume.rc

cleanup;

REPLICA=2

TEST glusterd
TEST pidof glusterd

TEST $CLI volume create $V0 replica $REPLICA $H0:$B0/${V0}-00 $H0:$B0/${V0}-01 $H0:$B0/${V0}-10 $H0:$B0/${V0}-11
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"
cleanup;