mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-07 00:55:21 +00:00
forgot the output would be multiline
This commit is contained in:
parent
24ea8358ca
commit
106598af4c
@ -257,13 +257,9 @@ get_backend(AppConfig) ->
|
||||
%% Why chkconfig? It generates an app.config from cuttlefish
|
||||
%% without starting riak.
|
||||
|
||||
ChkConfigOutput = run_riak(list_to_integer(N), Path, "chkconfig"),
|
||||
ChkConfigOutput = string:tokens(run_riak(list_to_integer(N), Path, "chkconfig"), "\n"),
|
||||
|
||||
|
||||
ConfigFileOutputLine = lists:last(string:tokens(
|
||||
ChkConfigOutput,
|
||||
"\n"
|
||||
)),
|
||||
ConfigFileOutputLine = lists:last(ChkConfigOutput),
|
||||
|
||||
%% ConfigFileOutputLine looks like this:
|
||||
%% -config /path/to/app.config -args_file /path/to/vm.args -vm_args /path/to/vm.args
|
||||
@ -272,8 +268,9 @@ get_backend(AppConfig) ->
|
||||
|
||||
case Files of
|
||||
[] -> %% No file generated by chkconfig. this isn't great
|
||||
lager:error("Cuttlefish Failure:"),
|
||||
lager:info("chkconfig: ~s", [ChkConfigOutput]),
|
||||
lager:error("Cuttlefish Failure."),
|
||||
lager:info("chkconfig:"),
|
||||
[ lager:info("~s", [Line]) || Line <- ChkConfigOutput ],
|
||||
?assert(false);
|
||||
_ ->
|
||||
File = hd(Files),
|
||||
|
Loading…
Reference in New Issue
Block a user