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

Some runtime enhacements #11

Closed
wants to merge 1 commit into from
Closed

Conversation

a2batic
Copy link

@a2batic a2batic commented Oct 15, 2016

Changed

  1. input to raw_input : Makes easier for user to input option.
  2. Added shell=True, due to runtime error of missing subprocess.py.

Copy link

@nigelbabu nigelbabu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for looking into this!

There's a few changes I'd like to see done before we merge this:

  • Using shell=True is definitely not the recommended approach. If something is failing, let's fix it so it runs without shell=True.
  • You've accidentally given execute bits to README.md.

@@ -183,7 +183,7 @@ def make_report(size, average_seq_write, average_seq_read, average_rand_write, a
print "Smallfile ls -l " + str(size) + " file size: " + str(average_smallfile_ls)

def run_command(command_in):
p = subprocess.Popen(command_in, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
p = subprocess.Popen(command_in, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should edit these to be proper dictionaries rather than passing shell=True.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nigelbabu How to do that?

@ShyamsundarR
Copy link
Collaborator

Closing the PR as there is no activity in close to 2 years. Further the bench py script is set to undergo changes.

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.

3 participants