mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
Moved loaded_upgrade to use TestMetaData for version
This commit is contained in:
parent
30d795f4a5
commit
fb1b679749
@ -32,17 +32,16 @@
|
|||||||
confirm() ->
|
confirm() ->
|
||||||
rt:config_or_os_env(basho_bench),
|
rt:config_or_os_env(basho_bench),
|
||||||
rt:config_or_os_env(spam_dir),
|
rt:config_or_os_env(spam_dir),
|
||||||
%% OldVsns = [legacy, previous],
|
verify_upgrade(),
|
||||||
OldVsns = [previous],
|
|
||||||
[verify_upgrade(OldVsn) || OldVsn <- OldVsns],
|
|
||||||
lager:info("Test ~p passed", [?MODULE]),
|
lager:info("Test ~p passed", [?MODULE]),
|
||||||
pass.
|
pass.
|
||||||
|
|
||||||
verify_upgrade(OldVsn) ->
|
verify_upgrade() ->
|
||||||
|
|
||||||
%% Only run 2i for level
|
|
||||||
TestMetaData = riak_test_runner:metadata(),
|
TestMetaData = riak_test_runner:metadata(),
|
||||||
|
%% Only run 2i for level
|
||||||
Backend = proplists:get_value(backend, TestMetaData),
|
Backend = proplists:get_value(backend, TestMetaData),
|
||||||
|
OldVsn = proplists:get_value(upgrade_version, TestMetaData, previous),
|
||||||
|
|
||||||
Config = [{riak_search, [{enabled, true}]}],
|
Config = [{riak_search, [{enabled, true}]}],
|
||||||
%% Uncomment to use settings more prone to cause races
|
%% Uncomment to use settings more prone to cause races
|
||||||
|
Loading…
Reference in New Issue
Block a user