diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2016-04-01 14:03:34 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2016-04-01 14:03:34 -0400 |
commit | d07f2c06641862c8515e65c6a56942337d3128b1 (patch) | |
tree | 112a757cd9c70dc5576c5621914ff95e7d34c84f | |
parent | c5ee8e26894ba4e079e524225c93fb33e9effdb0 (diff) | |
parent | 876240d4ed5010ba7a2da5d46a960b5f3f3621ec (diff) |
Merge pull request #1144 from talentdeficit/ct_opts_passthru
allow all `ct_opts` arguments to be passed through to `ct:run_test/1`
-rw-r--r-- | src/rebar_prv_common_test.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rebar_prv_common_test.erl b/src/rebar_prv_common_test.erl index 6b94f79..14dc4cc 100644 --- a/src/rebar_prv_common_test.erl +++ b/src/rebar_prv_common_test.erl @@ -189,8 +189,10 @@ ensure_opts([{suite, Suites}|Rest], Acc) -> ensure_opts(Rest, [NewSuites|Acc]); ensure_opts([{K, V}|Rest], Acc) -> ensure_opts(Rest, [{K, V}|Acc]); -ensure_opts([V|_Rest], _Acc) -> - ?PRV_ERROR({badconfig, {"Member `~p' of option `~p' must be a 2-tuple", {V, ct_opts}}}). +%% pass through other options, in case of things like config terms +%% in `ct_opts` +ensure_opts([V|Rest], Acc) -> + ensure_opts(Rest, [V|Acc]). add_hooks(Opts, State) -> case {readable(State), lists:keyfind(ct_hooks, 1, Opts)} of |