patch to handle debugfs not mounted #169
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have tried to add a patch using shelljs to handle the case when debugfs is not mounted(Issue #61 [still exists]).The issue is solved after adding the patch and I also did note the run-time before and after the change(for this example script: http://beagleboard.org/Support/BoneScript/getPinMode/), the results are :
before making the change :
real 0m8.573s
user 0m7.748s
sys 0m0.564s
after making the change(when debugfs already mounted) :
real 0m8.783s
user 0m8.068s
sys 0m0.516s
after making the change(when debugfs not mounted) :
real 0m10.074s
user 0m9.192s
sys 0m0.680s