Add an rt:admin/3 function that accepts a list of options as the third
parameter. Currently the only valid option is return_exit_code. The
rtdev, rtssh, and rt_cs_dev harnesses have been updated to support
this option. If return_to_exit is specified the return from a
?HARNESS:admin call is a pair with the exit code as the first member
and the command output as the second member. Finally the
basic_command_line test has been changed to use return_for_exit to
verify the changes.
Adds attach_direct function to correspond to `riak attach-direct`
as well as change the basic_command_line test to test both
`riak attach` and `riak attach-direct`.
Corresponds to functionality added in basho/riak#254
* Try to do as much as possible while the node is up/down, without
changing its state. Rapidly starting and stopping the node has
strange effects.
* We should consider removing the restart functionality from the
`riak` script, as it leaves things in undetermined states.
The `basic_command_line` test would start the `riak attach` test
by searching for the string `erlang.pipe.1` on the first line.
In some cases you will use `erlang.pipe.X` where X is an increasing
integer. This change simply removes that requirement from the
top of the test and checks for the proceeding string instead.