Skip to content

Commit

Permalink
Merge pull request #232 from aboudreault/stress-command-extra-kwargs-…
Browse files Browse the repository at this point in the history
…master

stress command: Forward extra kwargs to subprocess.call
  • Loading branch information
ptnapoleon committed Feb 16, 2015
2 parents 5aa124a + 8c43d75 commit bcb4952
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ccmlib/node.py
Expand Up @@ -857,7 +857,7 @@ def get_sstables(self, keyspace, column_family):
files.remove(f)
return files

def stress(self, stress_options=[]):
def stress(self, stress_options=[], **kwargs):
stress = common.get_stress_bin(self.get_install_dir())
if self.cluster.cassandra_version() <= '2.1':
stress_options.append('-d')
Expand All @@ -867,7 +867,7 @@ def stress(self, stress_options=[]):
stress_options.append(self.address())
args = [ stress ] + stress_options
try:
subprocess.call(args, cwd=common.parse_path(stress))
subprocess.call(args, cwd=common.parse_path(stress), **kwargs)
except KeyboardInterrupt:
pass

Expand Down

0 comments on commit bcb4952

Please sign in to comment.