Просмотр исходного кода

fix common test suite for new API

Maxim Sokhatsky 11 лет назад
Родитель
Сommit
e28468ecaf
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      test/mad_compile_SUITE.erl
  2. 1 1
      test/mad_deps_SUITE.erl

+ 2 - 2
test/mad_compile_SUITE.erl

@@ -45,7 +45,7 @@ erl_to_beam(_) ->
 deps(Config) ->
     DataDir = get_value(data_dir, Config),
     Deps = [{one, "", {}}, {two, "", {}}],
-    ok = mad_compile:deps(DataDir, "rebar.config", Deps),
+    ok = mad_compile:deps(DataDir, Config, "rebar.config", Deps),
     pong = one:ping(),
     pong = two:ping(),
     ok = application:load(one),
@@ -60,7 +60,7 @@ deps(Config) ->
 
 app(Config) ->
     DataDir = get_value(data_dir, Config),
-    ok = mad_compile:app(DataDir, "rebar.config"),
+    ok = mad_compile:app(DataDir, Config, "rebar.config"),
     pong = three:ping(),
     ok = application:load(three),
     {ok, [three]} = application:get_key(three, modules),

+ 1 - 1
test/mad_deps_SUITE.erl

@@ -46,6 +46,6 @@ fetch(Config) ->
     Deps = [{mad, ".*",
              {git, "git://github.com/s1n4/mad.git", {branch, "master"}}
             }],
-    mad_deps:fetch(DataDir, "rebar.config", Deps),
+    mad_deps:fetch(DataDir, Config, "rebar.config", Deps),
     {ok, _} = file:list_dir(filename:join(DepsDir, "mad")),
     os:cmd("rm -rf " ++ DepsDir).