From beae7ae0dab99a34ac6a6471feb8a7b9b2a3ed32 Mon Sep 17 00:00:00 2001 From: Tobias Schlager Date: Fri, 21 Feb 2014 12:12:59 +0100 Subject: Dynamically configure typer_SUITE according to environment Disables the typer app_test when dependent applications are missing. --- lib/typer/test/typer_SUITE.erl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib') 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() -> []. -- cgit v1.2.3