move common test operations into separate functions
move common test operations into separate functions

Patch by eevans

git-svn-id: 1e8683751772dd0ef52a45d586103b4a82d616ff@916489 13f79535-47bb-0310-9956-ffa450edef68

scaledata/cassandra,chbatey/cassandra-1,mklew/mmp,rackerlabs/cloudmetrics-cassandra,ifesdjeen/cassandra,driftx/cassandra,bcoverston/cassandra,vaibhi9/cassandra,EnigmaCurry/cassandra,sharvanath/cassandra,a-buck/cassandra,modempachev4/kassandra,wreda/cassandra,cooldoger/cassandra,beobal/cassandra,shawnkumar/cstargraph,jkni/cassandra,weideng1/cassandra,aweisberg/cassandra,knifewine/cassandra,mshuler/cassandra,ben-manes/cassandra,mklew/mmp,yonglehou/cassandra,yhnishi/cassandra,leomrocha/cassandra,JeremiahDJordan/cassandra,modempachev4/kassandra,stef1927/cassandra,josh-mckenzie/cassandra,Stratio/stratio-cassandra,nutbunnies/cassandra,sriki77/cassandra,spodkowinski/cassandra,tommystendahl/cassandra,DikangGu/cassandra,likaiwalkman/cassandra,yonglehou/cassandra,stef1927/cassandra,exoscale/cassandra,fengshao0907/Cassandra-Research,RyanMagnusson/cassandra,chaordic/cassandra,kangkot/stratio-cassandra,apache/cassandra,jasonstack/cassandra,ejankan/cassandra,exoscale/cassandra,sivikt/cassandra,blambov/cassandra,christian-esken/cassandra,strapdata/cassandra,lalithsuresh/cassandra-c3,blerer/cassandra,jsanda/cassandra,aureagle/cassandra,pcn/cassandra-1,hengxin/cassandra,mike-tr-adamson/cassandra,sivikt/cassandra,michaelmior/cassandra,helena/cassandra,juiceblender/cassandra,christian-esken/cassandra,blerer/cassandra,strapdata/cassandra,thelastpickle/cassandra,bcoverston/apache-hosted-cassandra,whitepages/cassandra,jasonwee/cassandra,bcoverston/cassandra,belliottsmith/cassandra,Bj0rnen/cassandra,Stratio/cassandra,adejanovski/cassandra,thobbs/cassandra,matthewtt/cassandra_read,mashuai/Cassandra-Research,asias/cassandra,nutbunnies/cassandra,carlyeks/cassandra,michaelmior/cassandra,WorksApplications/cassandra,EnigmaCurry/cassandra,adelapena/cassandra,sayanh/ViewMaintenanceCassandra,WorksApplications/cassandra,Stratio/stratio-cassandra,mgmuscari/cassandra-cdh4,tongjixianing/projects,szhou1234/cassandra,guanxi55nba/key-value-store,snazy/cassandra,LatencyUtils/cassandra-stress2,dongjiaqiang/cassandra,codefollower/Cassandra-Research,driftx/cassandra,yhnishi/cassandra,pallavi510/cassandra,ifesdjeen/cassandra,nlalevee/cassandra,ptuckey/cassandra,instaclustr/cassandra,miguel0afd/cassandra-cqlMod,fengshao0907/Cassandra-Research,phact/cassandra,fengshao0907/cassandra-1,project-zerus/cassandra,likaiwalkman/cassandra,dongjiaqiang/cassandra,pthomaid/cassandra,newrelic-forks/cassandra,asias/cassandra,dkua/cassandra,chaordic/cassandra,tommystendahl/cassandra,josh-mckenzie/cassandra,gdusbabek/cassandra,sedulam/CASSANDRA-12201,nvoron23/cassandra,pcmanus/cassandra,rackerlabs/cloudmetrics-cassandra,thobbs/cassandra,ben-manes/cassandra,yangzhe1991/cassandra,pkdevbox/cassandra,sluk3r/cassandra,sharvanath/cassandra,sbtourist/cassandra,hhorii/cassandra,darach/cassandra,bmel/cassandra,bmel/cassandra,ptuckey/cassandra,guard163/cassandra,ibmsoe/cassandra,dongjiaqiang/cassandra,pcn/cassandra-1,yanbit/cassandra,aarushi12002/cassandra,yukim/cassandra,aarushi12002/cassandra,cooldoger/cassandra,krummas/cassandra,Jaumo/cassandra,mheffner/cassandra-1,mambocab/cassandra,adejanovski/cassandra,dprguiuc/Cassandra-Wasef,swps/cassandra,pthomaid/cassandra,rdio/cassandra,vramaswamy456/cassandra,ifesdjeen/cassandra,adelapena/cassandra,driftx/cassandra,apache/cassandra,xiongzheng/Cassandra-Research,pauloricardomg/cassandra,scylladb/scylla-tools-java,instaclustr/cassandra,bcoverston/cassandra,jeffjirsa/cassandra,a-buck/cassandra,apache/cassandra,jasonstack/cassandra,juiceblender/cassandra,pbailis/cassandra-pbs,kgreav/cassandra,DavidHerzogTU-Berlin/cassandra,AtwooTM/cassandra,jrwest/cassandra,nlalevee/cassandra,Instagram/cassandra,adelapena/cassandra,mklew/mmp,leomrocha/cassandra,guanxi55nba/db-improvement,guard163/cassandra,phact/cassandra,Jollyplum/cassandra,jsanda/cassandra,boneill42/cassandra,ollie314/cassandra,knifewine/cassandra,beobal/cassandra,tjake/cassandra,likaiwalkman/cassandra,b/project-cassandra,ejankan/cassandra,rdio/cassandra,MasahikoSawada/cassandra,iamaleksey/cassandra,cooldoger/cassandra,jeromatron/cassandra,shawnkumar/cstargraph,Bj0rnen/cassandra,qinjin/mdtc-cassandra,nitsanw/cassandra,darach/cassandra,rmarchei/cassandra,guanxi55nba/key-value-store,bcoverston/cassandra,mshuler/cassandra,newrelic-forks/cassandra,whitepages/cassandra,kgreav/cassandra,lalithsuresh/cassandra-c3,yukim/cassandra,gdusbabek/cassandra,instaclustr/cassandra,spodkowinski/cassandra,iamaleksey/cassandra,ibmsoe/cassandra,yhnishi/cassandra,weideng1/cassandra,pcmanus/cassandra,matthewtt/cassandra_read,iburmistrov/Cassandra,helena/cassandra,sedulam/CASSANDRA-12201,tommystendahl/cassandra,taigetco/cassandra_read,guanxi55nba/db-improvement,michaelsembwever/cassandra,tjake/cassandra,nvoron23/cassandra,hhorii/cassandra,clohfink/cassandra,ibmsoe/cassandra,regispl/cassandra,stuhood/cassandra-old,bmel/cassandra,jrwest/cassandra,mshuler/cassandra,szhou1234/cassandra,wreda/cassandra,lalithsuresh/cassandra-c3,jasonstack/cassandra,juiceblender/cassandra,snazy/cassandra,mambocab/cassandra,nvoron23/cassandra,codefollower/Cassandra-Research,RyanMagnusson/cassandra,mkjellman/cassandra,rdio/cassandra,aweisberg/cassandra,pbailis/cassandra-pbs,Stratio/cassandra,ptnapoleon/cassandra,miguel0afd/cassandra-cqlMod,yonglehou/cassandra,heiko-braun/cassandra,beobal/cassandra,dkua/cassandra,AtwooTM/cassandra,DavidHerzogTU-Berlin/cassandraToRun,ollie314/cassandra,josh-mckenzie/cassandra,Jollyplum/cassandra,HidemotoNakada/cassandra-udf,bpupadhyaya/cassandra,sayanh/ViewMaintenanceCassandra,DICL/cassandra,pofallon/cassandra,RyanMagnusson/cassandra,pallavi510/cassandra,mike-tr-adamson/cassandra,aboudreault/cassandra,nitsanw/cassandra,rogerchina/cassandra,project-zerus/cassandra,mambocab/cassandra,weipinghe/cassandra,xiongzheng/Cassandra-Research,bcoverston/apache-hosted-cassandra,fengshao0907/cassandra-1,mgmuscari/cassandra-cdh4,qinjin/mdtc-cassandra,beobal/cassandra,modempachev4/kassandra,scaledata/cassandra,darach/cassandra,blerer/cassandra,GabrielNicolasAvellaneda/cassandra,driftx/cassandra,EnigmaCurry/cassandra,mariusae/cassandra,bdeggleston/cassandra,JeremiahDJordan/cassandra,wreda/cassandra,shawnkumar/cstargraph,DavidHerzogTU-Berlin/cassandra,snazy/cassandra,project-zerus/cassandra,scylladb/scylla-tools-java,thelastpickle/cassandra,aweisberg/cassandra,stuhood/cassandra-old,szhou1234/cassandra,caidongyun/cassandra,pkdevbox/cassandra,carlyeks/cassandra,blambov/cassandra,caidongyun/cassandra,snazy/cassandra,rogerchina/cassandra,krummas/cassandra,jeromatron/cassandra,DICL/cassandra,guanxi55nba/key-value-store,segfault/apache_cassandra,krummas/cassandra,sbtourist/cassandra,segfault/apache_cassandra,pauloricardomg/cassandra,dkua/cassandra,aarushi12002/cassandra,heiko-braun/cassandra,swps/cassandra,bcoverston/apache-hosted-cassandra,LatencyUtils/cassandra-stress2,aureagle/cassandra,belliottsmith/cassandra,qinjin/mdtc-cassandra,iburmistrov/Cassandra,jbellis/cassandra,chbatey/cassandra-1,tjake/cassandra,jrwest/cassandra,Stratio/stratio-cassandra,stuhood/cassandra-old,aboudreault/cassandra,sluk3r/cassandra,yukim/cassandra,rmarchei/cassandra,sayanh/ViewMaintenanceSupport,taigetco/cassandra_read,jasonwee/cassandra,apache/cassandra,whitepages/cassandra,AtwooTM/cassandra,jkni/cassandra,Imran-C/cassandra,mariusae/cassandra,jkni/cassandra,iamaleksey/cassandra,exoscale/cassandra,ifesdjeen/cassandra,yangzhe1991/cassandra,ollie314/cassandra,hengxin/cassandra,scylladb/scylla-tools-java,stuhood/cassandra-old,mashuai/Cassandra-Research,DavidHerzogTU-Berlin/cassandraToRun,kangkot/stratio-cassandra,yangzhe1991/cassandra,macintoshio/cassandra,ptnapoleon/cassandra,blerer/cassandra,pauloricardomg/cassandra,codefollower/Cassandra-Research,MasahikoSawada/cassandra,pcmanus/cassandra,sluk3r/cassandra,DikangGu/cassandra,bpupadhyaya/cassandra,jeffjirsa/cassandra,joesiewert/cassandra,mt0803/cassandra,mkjellman/cassandra,iamaleksey/cassandra,nakomis/cassandra,jeffjirsa/cassandra,jbellis/cassandra,Instagram/cassandra,heiko-braun/cassandra,emolsson/cassandra,jasobrown/cassandra,clohfink/cassandra,sriki77/cassandra,strapdata/cassandra,tommystendahl/cassandra,Stratio/stratio-cassandra,sharvanath/cassandra,instaclustr/cassandra,b/project-cassandra,kangkot/stratio-cassandra,nlalevee/cassandra,rackerlabs/cloudmetrics-cassandra,tongjixianing/projects,aboudreault/cassandra,josh-mckenzie/cassandra,vaibhi9/cassandra,ben-manes/cassandra,segfault/apache_cassandra,mashuai/Cassandra-Research,HidemotoNakada/cassandra-udf,JeremiahDJordan/cassandra,vramaswamy456/cassandra,hengxin/cassandra,jrwest/cassandra,guanxi55nba/db-improvement,Jaumo/cassandra,aureagle/cassandra,helena/cassandra,DICL/cassandra,mt0803/cassandra,mariusae/cassandra,yanbit/cassandra,nitsanw/cassandra,Imran-C/cassandra,weipinghe/cassandra,jbellis/cassandra,sriki77/cassandra,scaledata/cassandra,mshuler/cassandra,chaordic/cassandra,mariusae/cassandra,nutbunnies/cassandra,Stratio/stratio-cassandra,emolsson/cassandra,mike-tr-adamson/cassandra,szhou1234/cassandra,thobbs/cassandra,asias/cassandra,Bj0rnen/cassandra,sedulam/CASSANDRA-12201,michaelsembwever/cassandra,bpupadhyaya/cassandra,krummas/cassandra,rmarchei/cassandra,newrelic-forks/cassandra,jsanda/cassandra,belliottsmith/cassandra,caidongyun/cassandra,MasahikoSawada/cassandra,spodkowinski/cassandra,hhorii/cassandra,b/project-cassandra,joesiewert/cassandra,mkjellman/cassandra,yukim/cassandra,fengshao0907/Cassandra-Research,knifewine/cassandra,pofallon/cassandra,kgreav/cassandra,blambov/cassandra,gdusbabek/cassandra,boneill42/cassandra,WorksApplications/cassandra,shookari/cassandra,taigetco/cassandra_read,miguel0afd/cassandra-cqlMod,iburmistrov/Cassandra,ejankan/cassandra,GabrielNicolasAvellaneda/cassandra,tongjixianing/projects,pcn/cassandra-1,carlyeks/cassandra,weideng1/cassandra,macintoshio/cassandra,HidemotoNakada/cassandra-udf,michaelmior/cassandra,mheffner/cassandra-1,jasonwee/cassandra,Instagram/cassandra,LatencyUtils/cassandra-stress2,sayanh/ViewMaintenanceCassandra,fengshao0907/cassandra-1,jasobrown/cassandra,michaelsembwever/cassandra,clohfink/cassandra,ptnapoleon/cassandra,shookari/cassandra,vramaswamy456/cassandra,christian-esken/cassandra,scylladb/scylla-tools-java,bdeggleston/cassandra,kgreav/cassandra,adelapena/cassandra,b/project-cassandra,blambov/cassandra,weipinghe/cassandra,Instagram/cassandra,pkdevbox/cassandra,mheffner/cassandra-1,mariusae/cassandra,DikangGu/cassandra,strapdata/cassandra,nakomis/cassandra,pauloricardomg/cassandra,ptuckey/cassandra,regispl/cassandra,macintoshio/cassandra,clohfink/cassandra,DavidHerzogTU-Berlin/cassandra,GabrielNicolasAvellaneda/cassandra,sayanh/ViewMaintenanceSupport,michaelsembwever/cassandra,spodkowinski/cassandra,chbatey/cassandra-1,vaibhi9/cassandra,pallavi510/cassandra,kangkot/stratio-cassandra,tjake/cassandra,mkjellman/cassandra,yanbit/cassandra,WorksApplications/cassandra,matthewtt/cassandra_read,stef1927/cassandra,jeromatron/cassandra,phact/cassandra,kangkot/stratio-cassandra,jasobrown/cassandra,thelastpickle/cassandra,stef1927/cassandra,rogerchina/cassandra,sbtourist/cassandra,mt0803/cassandra,sivikt/cassandra,Stratio/cassandra,Jaumo/cassandra,mike-tr-adamson/cassandra,DavidHerzogTU-Berlin/cassandraToRun,jasobrown/cassandra,joesiewert/cassandra,a-buck/cassandra,emolsson/cassandra,adejanovski/cassandra,regispl/cassandra,juiceblender/cassandra,Jollyplum/cassandra,guard163/cassandra,boneill42/cassandra,bdeggleston/cassandra,shookari/cassandra,dprguiuc/Cassandra-Wasef,nakomis/cassandra,mgmuscari/cassandra-cdh4,dprguiuc/Cassandra-Wasef,jeffjirsa/cassandra,bdeggleston/cassandra,thelastpickle/cassandra,cooldoger/cassandra,swps/cassandra,Imran-C/cassandra,belliottsmith/cassandra,pthomaid/cassandra,aweisberg/cassandra,pofallon/cassandra,pbailis/cassandra-pbs,xiongzheng/Cassandra-Research,leomrocha/cassandra