From: Peter Lemenkov <lemenkov@gmail.com>
Date: Sat, 14 May 2016 22:37:46 +0300
Subject: [PATCH] Don't use deps for schema files when testing
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
diff --git a/src/riak_kv_test_util.erl b/src/riak_kv_test_util.erl
index 28b3aa14..aee60c04 100644
--- a/src/riak_kv_test_util.erl
+++ b/src/riak_kv_test_util.erl
@@ -265,9 +265,7 @@ dep_apps(Test, Extra) ->
application:set_env(riak_core, ring_state_dir, Test ++ "/ring"),
application:set_env(riak_core, platform_data_dir, Test ++ "/data"),
application:set_env(riak_core, handoff_port, 0), %% pick a random handoff port
- {ok, Dir} = file:get_cwd(),
- Dirs = [Dir ++ "/../deps/*/priv"],
- application:set_env(riak_core, schema_dirs, Dirs),
+ application:set_env(riak_core, schema_dirs, [code:lib_dir() ++ "/*/priv"]),
application:set_env(lager, handlers, [{lager_file_backend,
[
{file, Test ++ "/log/debug.log"}, debug, 10485760, "$D0", 5]}]),