diff --git a/tests/client_python_verify.erl b/tests/client_python_verify.erl index c286953b..610433f5 100644 --- a/tests/client_python_verify.erl +++ b/tests/client_python_verify.erl @@ -2,7 +2,8 @@ -export([confirm/0]). -include_lib("eunit/include/eunit.hrl"). --define(PYTHON_CLIENT_TAG, "1.5.1"). +%% @todo set this to 1.5.2 or greater, once that's released +-define(PYTHON_CLIENT_TAG, "1.5-stable"). -define(PYTHON_CHECKOUT, filename:join([rt:config(rt_scratch_dir), "riak-python-client"])). -define(PYTHON_GIT_URL, "git://github.com/basho/riak-python-client.git"). @@ -63,7 +64,10 @@ prereqs() -> rt:stream_cmd(Cmd), lager:info("[PREREQ] Resetting python client to tag '~s'", [?PYTHON_CLIENT_TAG]), - TagCmd = io_lib:format("git reset --hard ~s", [?PYTHON_CLIENT_TAG]), + %% @todo below is how to reset to a tag, use that when 1.5.2 is available + %%TagCmd = io_lib:format("git reset --hard ~s", [?PYTHON_CLIENT_TAG]), + rt:stream_cmd("git reset --hard", [{cd, ?PYTHON_CHECKOUT}]), + TagCmd = io_lib:format("git checkout -b ~s", [?PYTHON_CLIENT_TAG]), rt:stream_cmd(TagCmd, [{cd, ?PYTHON_CHECKOUT}]), lager:info("[PREREQ] Installing an isolated environment with virtualenv in ~s", [?PYTHON_CHECKOUT]),