From: Peter Lemenkov <lemenkov@gmail.com>
Date: Thu, 13 Sep 2018 11:00:38 +0300
Subject: [PATCH] Load cuttlefish schemas from noarch dir as well
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 a852a59f..b28ec5e6 100644
--- a/src/riak_kv_test_util.erl
+++ b/src/riak_kv_test_util.erl
@@ -265,7 +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
- application:set_env(riak_core, schema_dirs, [code:lib_dir() ++ "/*/priv"]),
+ application:set_env(riak_core, schema_dirs, [code:lib_dir() ++ "/*/priv/", "/usr/share/erlang/lib" ++ "/*/priv/"]),
application:set_env(lager, handlers, [{lager_file_backend,
[
{file, Test ++ "/log/debug.log"}, debug, 10485760, "$D0", 5]}]),