Commit Diff


commit - 38c6b0d38254d5ebde82cd469366955e808798b0
commit + 53d02c4d927bf1d20d74a9212d9c3dfaa0f2e3c9
blob - 156f1bc58737103fef41ec5f351ee038fa8c8aa0
blob + 34ef55fab0b2bb350b0ff9e7e907e6499abcdcba
--- test/config-luatest/cluster.lua
+++ test/config-luatest/cluster.lua
@@ -204,13 +204,13 @@ local cluster_mt = {
     end
 }
 
-local function new(g, config, server_opts)
+local function new(g, config, server_opts, opts)
     assert(config._config == nil, "Please provide cbuilder:new():config()")
     assert(g.cluster == nil)
 
     -- Prepare a temporary directory and write a configuration
     -- file.
-    local dir = treegen.prepare_directory({}, {})
+    local dir = opts and opts.dir or treegen.prepare_directory({}, {})
     local config_file_rel = 'config.yaml'
     local config_file = treegen.write_file(dir, config_file_rel,
                                            yaml.encode(config))