Fail with the bare atom fail

`riak_test_runner` does not support tagged tuples for failures. Fix
verify_snmp_repl module so that it returns the bare atom `fail` when it
fails, and write more detailed error messages to the log instead.
This commit is contained in:
Jason Voegele 2015-08-25 14:39:28 -04:00
parent adbaa99da8
commit 9ee856546a

View File

@ -64,11 +64,18 @@ intercept_riak_snmp_stat_poller(Node) ->
wait_for_snmp_stat_poller() -> wait_for_snmp_stat_poller() ->
receive receive
pass -> pass; pass ->
{fail, Reason} -> {fail, Reason}; pass;
X -> {fail, {unknown, X}} {fail, Reason} ->
lager:error("Failure in wait_for_snmp_stat_poller: ~p~n", [Reason]),
fail;
X ->
lager:error("Unknown failure in wait_for_snmp_stat_poller: ~p~n", [X]),
fail
after after
1000 -> {fail, timeout} 1000 ->
lager:error("Timeout failure in wait_for_snmp_stat_poller."),
fail
end. end.
make_nodes(NodeCount, ClusterCount, Config) -> make_nodes(NodeCount, ClusterCount, Config) ->