From 9f8a8df8146792d35caf56896129602ea22e65e1 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 Change-Id: I3526557d0a675692e94edb71b7d92c9202e6afa4 BUG: 765473 Signed-off-by: Raghavendra G Reviewed-on: http://review.gluster.org/4559 Reviewed-by: Amar Tumballi Tested-by: Gluster Build System Reviewed-by: Anand Avati --- tests/bugs/bug-869724.t | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'tests/bugs/bug-869724.t') diff --git a/tests/bugs/bug-869724.t b/tests/bugs/bug-869724.t index 6dfc4060d..eec5d344c 100644 --- a/tests/bugs/bug-869724.t +++ b/tests/bugs/bug-869724.t @@ -11,15 +11,6 @@ TEST pidof glusterd TEST $CLI volume create $V0 $H0:$B0/${V0}1; -function volinfo_field() -{ - local vol=$1; - local field=$2; - - $CLI volume info $vol | grep "^$field: " | sed 's/.*: //'; -} - - ## Verify volume is is created EXPECT "$V0" volinfo_field $V0 'Volume Name'; EXPECT 'Created' volinfo_field $V0 'Status'; @@ -36,21 +27,6 @@ TEST $CLI volume set $V0 performance.stat-prefetch off; ## Mount FUSE with caching disabled TEST glusterfs --entry-timeout=0 --attribute-timeout=0 -s $H0 --volfile-id $V0 $M0; -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 -} - touch $M0/test; build_tester $(dirname $0)/getlk_owner.c -- cgit