You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After the #327, we added the following logic: the entire vardir is deleted automatically or not (if the --not-clean flag is passed). However, if the user wants to use his workdir for the server, he is forced to manually delete it (fio.rmtree(server.workdir))
If the workdir is custom (i.e. passed as a parameter), then delete it automatically.
Current behavior:
g.before_each(function(cg)
cg.server=server:new {
box_cfg= {},
workdir=fio.cwd() ..'/tmp'
}
cg.server:start()
end)
g.after_each(function(cg)
cg.server:drop()
fio.rmtree(cg.server.workdir) <--- this is mandatoryend)
g.test_foreign_keys=function(cg)
cg.server:exec(function()
t.assert(true)
end)
end
ochaplashkin
changed the title
Add automatic deletion directory if wokrdir is custom
Add automatic deletion directory if workdir is custom
Dec 26, 2023
After the #327, we added the following logic: the entire vardir is deleted automatically or not (if the --not-clean flag is passed). However, if the user wants to use his workdir for the server, he is forced to manually delete it (fio.rmtree(server.workdir))
If the workdir is custom (i.e. passed as a parameter), then delete it automatically.
Current behavior:
Expected behavior:
The text was updated successfully, but these errors were encountered: