Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stress command: Forward extra kwargs to subprocess.call #228

Merged
merged 1 commit into from Jan 30, 2015

Conversation

aboudreault
Copy link
Contributor

Useful if we expect a stress command to fail, and want to ignore the 1000+ lines of errors.

@ptnapoleon
Copy link
Contributor

Does this work? What does the call to node.stress you are attempting look like?

@aboudreault
Copy link
Contributor Author

Yes, sure it works. I simply use the normal way we do with subprocess.call.

with open(os.devnull, 'w') as devnull:
       self.node1.stress(['--num-keys=1000000'], stdout=devnull, stderr=subprocess.STDOUT)

ptnapoleon added a commit that referenced this pull request Jan 30, 2015
stress command: Forward extra kwargs to subprocess.call
@ptnapoleon ptnapoleon merged commit 8888714 into riptano:develop Jan 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants