-
Notifications
You must be signed in to change notification settings - Fork 72
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
Allow secondary location for intercepts. #818
base: master
Are you sure you want to change the base?
Conversation
Allow the configuration to specify an alternative location for intercept files, instead of assuming that they are located with riak_test/intercepts; this allows projects to keep related intercepts locally.
cc: @macintux |
@@ -51,7 +51,7 @@ get_os_env(Var, Default) -> | |||
|
|||
%% @doc Load the configuration from the specified config file. | |||
load(Config, undefined) -> | |||
load(Config, filename:join([os:getenv("HOME"), ".riak_test.config"])); | |||
load(Config, filename:join([os:getenv("PWD"), ".riak_test.config"])); |
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.
I understand the motivation, but shouldn't this be additive? Check pwd
first, if it's not there, check HOME
?
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.
This change shouldn't have made it in; this is a Lasp-specific change.
Once you've reverted the PWD/HOME bit, this looks good. |
Allow the configuration to specify an alternative location for intercept files, instead of assuming that they are located with riak_test/intercepts; this allows projects to keep related intercepts locally.