Skip to content

Commit

Permalink
Merge pull request #609 from basho/features/csm/floppystore
Browse files Browse the repository at this point in the history
Adapt riak_test for riak_core applications.
  • Loading branch information
cmeiklejohn committed Jun 3, 2014
2 parents 98b180a + ac0192f commit 4580448
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rtdev.erl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ get_deps() ->
lists:flatten(io_lib:format("~s/dev/dev1/lib", [relpath(current)])).

riakcmd(Path, N, Cmd) ->
io_lib:format("~s/dev/dev~b/bin/riak ~s", [Path, N, Cmd]).
ExecName = rt_config:get(exec_name, "riak"),
io_lib:format("~s/dev/dev~b/bin/~s ~s", [Path, N, ExecName, Cmd]).

riakreplcmd(Path, N, Cmd) ->
io_lib:format("~s/dev/dev~b/bin/riak-repl ~s", [Path, N, Cmd]).
Expand All @@ -48,7 +49,8 @@ riak_admin_cmd(Path, N, Args) ->
erlang:error(badarg)
end, Args),
ArgStr = string:join(Quoted, " "),
io_lib:format("~s/dev/dev~b/bin/riak-admin ~s", [Path, N, ArgStr]).
ExecName = rt_config:get(exec_name, "riak"),
io_lib:format("~s/dev/dev~b/bin/~s-admin ~s", [Path, N, ExecName, ArgStr]).

run_git(Path, Cmd) ->
lager:info("Running: ~s", [gitcmd(Path, Cmd)]),
Expand Down

0 comments on commit 4580448

Please sign in to comment.