]> granicus.if.org Git - ejabberd/commitdiff
Copy lite.sql to place where tests expect it in failback mode
authorPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 26 May 2016 09:05:44 +0000 (11:05 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 26 May 2016 09:08:53 +0000 (11:08 +0200)
test/suite.erl

index c605ed709df4d81caaf8a6af34d9b40fc6003226..22e328fe9cc5b43de40fa102560501ccaa80cfe5 100644 (file)
@@ -47,6 +47,10 @@ init_config(Config) ->
                                                    ]),
     ConfigPath = filename:join([CWD, "ejabberd.yml"]),
     ok = file:write_file(ConfigPath, CfgContent),
+    ok = file:make_dir(filename:join([CWD, "priv"])),
+    ok = file:make_dir(filename:join([CWD, "priv", "sql"])),
+    {ok, _} = file:copy(filename:join([DataDir, "..", "..", "sql", "lite.sql"]),
+                       filename:join([CWD, "priv", "sql", "lite.sql"])),
     ok = application:load(sasl),
     ok = application:load(mnesia),
     ok = application:load(ejabberd),