Moved loaded_upgrade to use TestMetaData for version

This commit is contained in:
Joe DeVivo 2012-11-15 12:46:18 -07:00
parent 30d795f4a5
commit fb1b679749

View File

@ -32,17 +32,16 @@
confirm() ->
rt:config_or_os_env(basho_bench),
rt:config_or_os_env(spam_dir),
%% OldVsns = [legacy, previous],
OldVsns = [previous],
[verify_upgrade(OldVsn) || OldVsn <- OldVsns],
verify_upgrade(),
lager:info("Test ~p passed", [?MODULE]),
pass.
verify_upgrade(OldVsn) ->
verify_upgrade() ->
%% Only run 2i for level
TestMetaData = riak_test_runner:metadata(),
%% Only run 2i for level
Backend = proplists:get_value(backend, TestMetaData),
OldVsn = proplists:get_value(upgrade_version, TestMetaData, previous),
Config = [{riak_search, [{enabled, true}]}],
%% Uncomment to use settings more prone to cause races