Skip to content

Commit 4580448

Browse files
committed
Merge pull request #609 from basho/features/csm/floppystore
Adapt riak_test for riak_core applications.
2 parents 98b180a + ac0192f commit 4580448

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/rtdev.erl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ get_deps() ->
3131
lists:flatten(io_lib:format("~s/dev/dev1/lib", [relpath(current)])).
3232

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

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

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

0 commit comments

Comments
 (0)