summaryrefslogtreecommitdiffstats
path: root/tests/bugs/bug-858242.t
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2013-02-21 16:29:43 +0530
committerAnand Avati <avati@redhat.com>2013-03-06 21:13:08 -0800
commit7901795a494590bef45cc555a8cfbf29387ac456 (patch)
tree1b05727a8072933e6ba23ff6d9b0602736c7678b /tests/bugs/bug-858242.t
parent419660e3283061fde6d467df5a3fa734b69f19f2 (diff)
tests: move common funtion definitions to include.rc
BUG: 765473 Change-Id: Id0d194374d34cfec8ee601090f7fe38b1856ac22 Signed-off-by: Raghavendra G <raghavendra@gluster.com> Reviewed-on: http://review.gluster.org/4631 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Jeff Darcy <jdarcy@redhat.com>
Diffstat (limited to 'tests/bugs/bug-858242.t')
-rwxr-xr-xtests/bugs/bug-858242.t23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/bugs/bug-858242.t b/tests/bugs/bug-858242.t
index 2009ee7e4..e93c2d244 100755
--- a/tests/bugs/bug-858242.t
+++ b/tests/bugs/bug-858242.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;
EXPECT 'Created' volinfo_field $V0 'Status';
@@ -27,21 +19,6 @@ TEST $CLI volume set $V0 performance.quick-read off
#mount on a random dir
TEST glusterfs --entry-timeout=3600 --attribute-timeout=3600 -s $H0 --volfile-id=$V0 $M0 --direct-io-mode=yes
-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-858242.c
TEST $(dirname $0)/bug-858242 $M0/testfile $V0