Removed case statement from riak_test_runner that was part of a previous implementation

This commit is contained in:
Joe DeVivo 2012-11-13 12:45:33 -07:00
parent 0e4f2c8504
commit 1fb993cd03

View File

@ -83,18 +83,8 @@ execute(TestModule, TestMetaData) ->
NewGroupLeader = riak_test_group_leader:new_group_leader(self()),
group_leader(NewGroupLeader, self()),
Pid = case proplists:get_value(confirm,
proplists:get_value(exports, TestModule:module_info()),
-1) of
1 ->
spawn_link(TestModule, confirm, [TestMetaData]);
0 ->
spawn_link(TestModule, confirm, []);
%% This isn't reachable, because Arities greater than 1 are caught in confirm/3.
%% still, better safe than sorry.
BadArity ->
spawn_link(fun() -> erlang:error("~p:confirm/~p is not exported.", [TestModule, BadArity]) end)
end,
Pid = spawn_link(TestModule, confirm, []),
Return = rec_loop(Pid, TestModule, TestMetaData),
group_leader(GroupLeader, self()),
Return.