X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;ds=sidebyside;f=test%2Ftest.sh;h=5808baf0d03102af117c0b646283c6a3b83c6693;hb=71246fb0c8dead16cc33caf83020961c33f8efda;hp=90a54589b219bfbd15ce3f34620f693f352865e5;hpb=38b4c4d6d866c6077233633d3e7c0850a22fd261;p=p2p-kernel-protocol.git diff --git a/test/test.sh b/test/test.sh index 90a5458..5808baf 100755 --- a/test/test.sh +++ b/test/test.sh @@ -6,10 +6,10 @@ CLIENT=client/client SERVER=server/server FILE=/root/Dropbox/school/p2pkp/test/client/test_file IP="127.0.0.1" +WAIT_TIME=2 LISTENERS_PORTS=( 60000 - 60001 ) @@ -36,10 +36,14 @@ sleep 1 $CLIENT $FILE $ARGUMENTS +sleep $WAIT_TIME # kill netcat for pid in $pids; do - wait $pid &> /dev/null + kill -9 $pid &> /dev/null done +#for pid in $pids; do +# wait $pid &> /dev/null +#done # remove module rmmod $MODULE_NAME