-
Notifications
You must be signed in to change notification settings - Fork 70
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
Addressing FileUtils::ExtractExpandedPath failure #288
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some unit tests for Config as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Direction is good. Some bugs and some style recommendations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, just a few minor comments with the test. I will try to use it as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the PR title and final commit message to something more relevant. Everything else looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work and congrats on your first commit!
7373788
446839f
to
703b66d
Compare
fixed linter issues added logic for checking ExtractExpandedPath failures Added/Fixed some tests and a typo fixed test fixed bugs and added style changes fixed linter issues fixed repeated code, capitalization, and removed TODO comment Removed redundant code, added formatting for error messages, updated shadow file size/readme fixed error message fixed test fixed repeated code, capitalization, and removed TODO comment Removed redundant code, added formatting for error messages, updated shadow file size/readme fixed error message Added more specific error messages
fixed linter issues added logic for checking ExtractExpandedPath failures Added/Fixed some tests and a typo fixed test fixed bugs and added style changes fixed linter issues fixed repeated code, capitalization, and removed TODO comment Removed redundant code, added formatting for error messages, updated shadow file size/readme fixed error message fixed test fixed repeated code, capitalization, and removed TODO comment Removed redundant code, added formatting for error messages, updated shadow file size/readme fixed error message Added more specific error messages
fixed linter issues added logic for checking ExtractExpandedPath failures Added/Fixed some tests and a typo fixed test fixed bugs and added style changes fixed linter issues fixed repeated code, capitalization, and removed TODO comment Removed redundant code, added formatting for error messages, updated shadow file size/readme fixed error message fixed test fixed repeated code, capitalization, and removed TODO comment Removed redundant code, added formatting for error messages, updated shadow file size/readme fixed error message Added more specific error messages # Conflicts: # source/fleetprovisioning/FleetProvisioning.cpp # test/config/TestConfig.cpp
Motivation
wordexp
in implementation of FileUtils::ExtractExpandedPath #203Modifications
Change summary
Added brief check on the return value of wordexp. Upon receiving a bad status code, return a sentinel value indicating failure. Also added documentation of this behavior on the function description.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.