From 8c89a388bf39b34430dae76ca51ec9869e938f7f Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Mon, 12 Dec 2011 19:08:40 +0100 Subject: Universally support apps=/skip_apps= --- src/rebar_ct.erl | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'src/rebar_ct.erl') diff --git a/src/rebar_ct.erl b/src/rebar_ct.erl index 0303787..54e97e9 100644 --- a/src/rebar_ct.erl +++ b/src/rebar_ct.erl @@ -46,20 +46,7 @@ %% =================================================================== ct(Config, File) -> - case rebar_config:get_global(app, undefined) of - undefined -> - %% No app parameter specified, run everything.. - run_test_if_present("test", Config, File); - Apps -> - TargetApps = [list_to_atom(A) || A <- string:tokens(Apps, ",")], - ThisApp = rebar_app_utils:app_name(File), - case lists:member(ThisApp, TargetApps) of - true -> - run_test_if_present("test", Config, File); - false -> - ?DEBUG("Skipping common_test on app: ~p\n", [ThisApp]) - end - end. + run_test_if_present("test", Config, File). %% =================================================================== %% Internal functions -- cgit v1.1