aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_server
diff options
context:
space:
mode:
authorrzezeski <[email protected]>2011-05-22 14:25:17 -0400
committerHenrik Nord <[email protected]>2011-05-24 09:15:43 +0200
commit7d8a1f8b944d6734d9419f184c441899a48c11a3 (patch)
treee1245e23bc1ccd1f5214531fff4da2e78d5318c2 /lib/test_server
parent5f7fa62cbfa18b88fc254fe362b11367177d2673 (diff)
downloadotp-7d8a1f8b944d6734d9419f184c441899a48c11a3.tar.gz
otp-7d8a1f8b944d6734d9419f184c441899a48c11a3.tar.bz2
otp-7d8a1f8b944d6734d9419f184c441899a48c11a3.zip
Add a proplist() type
Recently I was adding specs to an API and found that there is no canonical proplist() type defined.
Diffstat (limited to 'lib/test_server')
-rw-r--r--lib/test_server/src/ts_install_cth.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/test_server/src/ts_install_cth.erl b/lib/test_server/src/ts_install_cth.erl
index c5444a342f..0770190c36 100644
--- a/lib/test_server/src/ts_install_cth.erl
+++ b/lib/test_server/src/ts_install_cth.erl
@@ -49,8 +49,7 @@
-include_lib("kernel/include/file.hrl").
--type proplist() :: list({atom(),term()}).
--type config() :: proplist().
+-type config() :: proplists:proplist().
-type reason() :: term().
-type skip_or_fail() :: {skip, reason()} |
{auto_skip, reason()} |
@@ -65,7 +64,7 @@ id(_Opts) ->
?MODULE.
%% @doc Always called before any other callback function.
--spec init(Id :: term(), Opts :: proplist()) ->
+-spec init(Id :: term(), Opts :: proplists:proplist()) ->
State :: #state{}.
init(_Id, Opts) ->
Nodenames = proplists:get_value(nodenames, Opts, 0),