summaryrefslogtreecommitdiff
path: root/test/rebar_test_utils.erl
diff options
context:
space:
mode:
authorTristan Sloughter <t@crashfast.com>2015-10-27 10:21:22 -0500
committerTristan Sloughter <t@crashfast.com>2015-10-27 10:21:22 -0500
commitc88c373e49aa19ebf7e459d7b29eeb86d3ad8d1e (patch)
tree1d9fbb458fef160b327cfc74fc06a13ff97417dd /test/rebar_test_utils.erl
parent208be2d1666a2da0b353e5ae6a2aa2314a1e7923 (diff)
parentdee2392e13175b359ed6af7b0296ca2fb9e22789 (diff)
Merge pull request #883 from talentdeficit/erlc_compiler_refactor
compiler refactor/eunit & ct fixes
Diffstat (limited to 'test/rebar_test_utils.erl')
-rw-r--r--test/rebar_test_utils.erl7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/rebar_test_utils.erl b/test/rebar_test_utils.erl
index ca5e91a..3943db7 100644
--- a/test/rebar_test_utils.erl
+++ b/test/rebar_test_utils.erl
@@ -334,7 +334,7 @@ check_results(AppDir, Expected, ProfileRun) ->
{ok, RelxState3} = rlx_prv_rel_discover:do(RelxState2),
LibDir = filename:join([ReleaseDir, Name, "lib"]),
- {ok, RelLibs} = file:list_dir(LibDir),
+ {ok, RelLibs} = rebar_utils:list_dir(LibDir),
IsSymLinkFun =
fun(X) ->
ec_file:is_symlink(filename:join(LibDir, X))
@@ -357,6 +357,9 @@ check_results(AppDir, Expected, ProfileRun) ->
; ({file, Filename}) ->
ct:pal("Filename: ~s", [Filename]),
?assert(filelib:is_file(Filename))
+ ; ({dir, Dirname}) ->
+ ct:pal("Directory: ~s", [Dirname]),
+ ?assert(filelib:is_dir(Dirname))
end, Expected).
write_src_file(Dir, Name) ->
@@ -422,7 +425,7 @@ get_app_metadata(Name, Vsn, Deps) ->
package_app(AppDir, DestDir, PkgName) ->
Name = PkgName++".tar",
- {ok, Fs} = file:list_dir(AppDir),
+ {ok, Fs} = rebar_utils:list_dir(AppDir),
ok = erl_tar:create(filename:join(DestDir, "contents.tar.gz"),
lists:zip(Fs, [filename:join(AppDir,F) || F <- Fs]),
[compressed]),