Permalink
Browse files

ecking in ping pong tests from fg

  • Loading branch information...
1 parent 520c505 commit 0755c37c914152e5a70f9499b81d03fdc2870c1c BuzzTroll committed Dec 20, 2011
Showing with 4 additions and 3 deletions.
  1. +1 −1 scale_scripts/ping.yml
  2. +2 −1 scale_scripts/pingpong.py
  3. +1 −1 scale_scripts/run_pingpong.sh
View
@@ -19,4 +19,4 @@ test:
ponger_name: pong
consume_timeout: 5
consume_count: 1
- runtime: 15
+ runtime: 28800
@@ -47,9 +47,10 @@ def go(self):
self.timer.start()
self.start_time = datetime.datetime.now()
print "sending first ping"
+ self.dashi.fire(self.CFG.test.ponger_name, "ping")
while not self.done:
try:
- self.dashi.fire(self.CFG.test.ponger_name, "ping")
+ self.dashi.consume(count=1, timeout=2)
except socket.timeout, ex:
pass
print "sending final message"
@@ -46,7 +46,7 @@ do
ssh $pinger_host $py $r_pgm_file --test.type=ping $cmd_line_args $r_conf_file | tee $out_file
echo "pinger finished, waiting for ponger"
- wait $recv_pid
+ kill $recv_pid
echo "ponger finished"
kill $kill_pid1
kill $kill_pid2

0 comments on commit 0755c37

Please sign in to comment.