aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2011-07-29 11:55:03 +0200
committerLukas Larsson <[email protected]>2011-08-31 10:51:35 +0200
commitabb58770744de4b28a5d29abd6904bb9026d25b1 (patch)
treea6a0c4cb0325f6fdfc5c9894f89947e38fdc8d42 /lib
parent187cf0a2a5cb5cc5f94e2b9bb07b03955ad6eb4d (diff)
downloadotp-abb58770744de4b28a5d29abd6904bb9026d25b1.tar.gz
otp-abb58770744de4b28a5d29abd6904bb9026d25b1.tar.bz2
otp-abb58770744de4b28a5d29abd6904bb9026d25b1.zip
Update to reflect new cth callback api
Diffstat (limited to 'lib')
-rw-r--r--lib/test_server/src/ts_install_cth.erl12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/test_server/src/ts_install_cth.erl b/lib/test_server/src/ts_install_cth.erl
index 0770190c36..a41916fd0a 100644
--- a/lib/test_server/src/ts_install_cth.erl
+++ b/lib/test_server/src/ts_install_cth.erl
@@ -65,18 +65,18 @@ id(_Opts) ->
%% @doc Always called before any other callback function.
-spec init(Id :: term(), Opts :: proplists:proplist()) ->
- State :: #state{}.
+ {ok, State :: #state{}}.
init(_Id, Opts) ->
Nodenames = proplists:get_value(nodenames, Opts, 0),
Nodes = proplists:get_value(nodes, Opts, 0),
TSConfDir = proplists:get_value(ts_conf_dir, Opts),
TargetSystem = proplists:get_value(target_system, Opts, install_local),
InstallOpts = proplists:get_value(install_opts, Opts, []),
- #state{ nodenames = Nodenames,
- nodes = Nodes,
- ts_conf_dir = TSConfDir,
- target_system = TargetSystem,
- install_opts = InstallOpts }.
+ {ok, #state{ nodenames = Nodenames,
+ nodes = Nodes,
+ ts_conf_dir = TSConfDir,
+ target_system = TargetSystem,
+ install_opts = InstallOpts } }.
%% @doc Called before init_per_suite is called.
-spec pre_init_per_suite(Suite :: atom(),