aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobias Schlager <[email protected]>2014-02-21 12:12:59 +0100
committerSiri Hansen <[email protected]>2014-02-24 11:02:36 +0100
commitbeae7ae0dab99a34ac6a6471feb8a7b9b2a3ed32 (patch)
tree473512e4475fb3ffc237cf61076a937262b4e867 /lib
parent4fe82b421fda09896392f239329d1d04cf4cab39 (diff)
downloadotp-beae7ae0dab99a34ac6a6471feb8a7b9b2a3ed32.tar.gz
otp-beae7ae0dab99a34ac6a6471feb8a7b9b2a3ed32.tar.bz2
otp-beae7ae0dab99a34ac6a6471feb8a7b9b2a3ed32.zip
Dynamically configure typer_SUITE according to environment
Disables the typer app_test when dependent applications are missing.
Diffstat (limited to 'lib')
-rw-r--r--lib/typer/test/typer_SUITE.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/typer/test/typer_SUITE.erl b/lib/typer/test/typer_SUITE.erl
index b6f7b2119b..99c4facbad 100644
--- a/lib/typer/test/typer_SUITE.erl
+++ b/lib/typer/test/typer_SUITE.erl
@@ -22,7 +22,13 @@ suite() ->
[{ct_hooks, [ts_install_cth]}].
all() ->
- [app, appup].
+ case application:ensure_all_started(typer) of
+ {ok, Apps} ->
+ [application:stop(App) || App <- lists:reverse(Apps)],
+ [app, appup];
+ _ ->
+ [appup]
+ end.
groups() ->
[].