diff options
author | Raghavendra G <raghavendra@gluster.com> | 2013-02-21 16:29:43 +0530 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2013-02-22 12:12:26 -0800 |
commit | 9f8a8df8146792d35caf56896129602ea22e65e1 (patch) | |
tree | 25954091bb1574cc2d2e5e6524241ab26ef99294 /tests/bugs/bug-808400-dist.t | |
parent | 91052d8b5677920f2e5aea56fc082e243c76ca43 (diff) |
tests: move common funtion definitions to include.rc
Change-Id: I3526557d0a675692e94edb71b7d92c9202e6afa4
BUG: 765473
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Reviewed-on: http://review.gluster.org/4559
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'tests/bugs/bug-808400-dist.t')
-rwxr-xr-x | tests/bugs/bug-808400-dist.t | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/bugs/bug-808400-dist.t b/tests/bugs/bug-808400-dist.t index a404cdba971..6a29eb626ef 100755 --- a/tests/bugs/bug-808400-dist.t +++ b/tests/bugs/bug-808400-dist.t @@ -8,14 +8,6 @@ TEST glusterd TEST pidof glusterd TEST $CLI volume info; -function volinfo_field() -{ - local vol=$1; - local field=$2; - - $CLI volume info $vol | grep "^$field: " | sed 's/.*: //'; -} - TEST $CLI volume create $V0 $H0:$B0/brick1 $H0:$B0/brick2; EXPECT 'Created' volinfo_field $V0 'Status'; @@ -25,21 +17,6 @@ EXPECT 'Started' volinfo_field $V0 'Status'; MOUNTDIR=$M0; TEST glusterfs --entry-timeout=0 --attribute-timeout=0 --volfile-server=$H0 --volfile-id=$V0 $MOUNTDIR; -function cleanup_tester () -{ - local exe=$1 - rm -f $exe -} - -function build_tester () -{ - local cfile=$1 - local fname=$(basename "$cfile") - local ext="${fname##*.}" - local execname="${fname%.*}" - gcc -g -o $(dirname $cfile)/$execname $cfile -} - build_tester $(dirname $0)/bug-808400-flock.c build_tester $(dirname $0)/bug-808400-fcntl.c |