summaryrefslogtreecommitdiffstats
path: root/dvm/3817/testcase
blob: 0f188ac09b1305445bba88e14ff927d29550f15c (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

function _init ()
{
        source $cwd/regression_helpers;
}

function volume_delete ()
{
        $GLUSTERFSDIR/gluster volume delete vol --mode=script 2>/dev/null 1>/dev/null;

        pgrep glusterd 2>/dev/null 1>/dev/null;

        return $?;
}

function main ()
{
        local ret;

        volume_delete;

        ret=$?;

        if [ $ret -eq 0 ]; then
            exit 0;
        else
            exit 1;
        fi
}

_init && main "$@"