소스 검색

Add awareness of 'app' parameter to ct module

pull/3/head
Tino Breddin 14 년 전
committed by Tuncer Ayaz
부모
커밋
578ba06ad9
1개의 변경된 파일14개의 추가작업 그리고 2개의 파일을 삭제
  1. +14
    -2
      src/rebar_ct.erl

+ 14
- 2
src/rebar_ct.erl 파일 보기

@ -46,8 +46,20 @@
%% ===================================================================
ct(Config, File) ->
run_test_if_present("test", 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.
%% ===================================================================
%% Internal functions

불러오는 중...
취소
저장