From 7901795a494590bef45cc555a8cfbf29387ac456 Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Thu, 21 Feb 2013 16:29:43 +0530 Subject: tests: move common funtion definitions to include.rc BUG: 765473 Change-Id: Id0d194374d34cfec8ee601090f7fe38b1856ac22 Signed-off-by: Raghavendra G Reviewed-on: http://review.gluster.org/4631 Tested-by: Gluster Build System Reviewed-by: Jeff Darcy --- tests/bugs/bug-808400-repl.t | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'tests/bugs/bug-808400-repl.t') diff --git a/tests/bugs/bug-808400-repl.t b/tests/bugs/bug-808400-repl.t index d11bd2504..69cd9379b 100755 --- a/tests/bugs/bug-808400-repl.t +++ b/tests/bugs/bug-808400-repl.t @@ -7,15 +7,6 @@ cleanup; 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 replica 2 $H0:$B0/brick1 $H0:$B0/brick2; EXPECT 'Created' volinfo_field $V0 'Status'; @@ -25,21 +16,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 -- cgit