Browse files

benchmark_command was not getting the options correctly. fixed that.

  • Loading branch information...
1 parent 026815d commit eb21dad6520937358a8be7ac7f9d5b191fedfc92 @deanmalmgren deanmalmgren committed Apr 27, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 beeswithmachineguns/bees.py
View
3 beeswithmachineguns/bees.py
@@ -225,7 +225,8 @@ def _attack(params):
os.system("scp -q -o 'StrictHostKeyChecking=no' %s %s@%s:/tmp/honeycomb" % (params['post_file'], params['username'], params['instance_name']))
options += ' -k -T "%(mime_type)s; charset=UTF-8" -p /tmp/honeycomb' % params
- benchmark_command = 'ab -r -n %(num_requests)s -c %(concurrent_requests)s -C "sessionid=NotARealSessionID" %(options) "%(url)s"' % params
+ params['options'] = options
+ benchmark_command = 'ab -r -n %(num_requests)s -c %(concurrent_requests)s -C "sessionid=NotARealSessionID" %(options)s "%(url)s"' % params
stdin, stdout, stderr = client.exec_command(benchmark_command)
response = {}

0 comments on commit eb21dad

Please sign in to comment.