Skip to content

Commit

Permalink
fix test_support.tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vladdu committed Mar 6, 2016
1 parent 76e235f commit 0ff7812
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions org.erlide.test_support.tests/erl/bt_run.erl
Expand Up @@ -2,20 +2,20 @@
-module(bt_run).
-export([run/4]).

-include("erlide.hrl").
%% -include("erlide.hrl").

-define(NUM_TESTS, 7).

run(Dir, Suite, Arg, Cb) ->
?Info({"BT_RUN RUN", Dir, Suite, Arg, Cb}),
%% ?Info({"BT_RUN RUN", Dir, Suite, Arg, Cb}),
spawn(fun()->arun(Dir, Suite, Arg, Cb) end),
ok.

arun(Dir, Suite, Arg, Cb) ->
timer:sleep(100),
notify(Cb, init, {"",s,c}),
Z=(catch blabla_SUITE:f()),
?Info(Z),
_Z=(catch blabla_SUITE:f()),
%% ?Info(_Z),
do_tests(Dir, Suite, Arg, Cb, ?NUM_TESTS).

do_tests(Dir, Suite, Arg, Cb, 0) ->
Expand All @@ -42,6 +42,6 @@ stop(Dir, Suite, _Arg, Cb) ->


notify(Cb, Event, Args) ->
?Info({Cb, Event, Args}),
%% ?Info({Cb, Event, Args}),
Cb:Event(Args),
ok.

0 comments on commit 0ff7812

Please sign in to comment.