Clear test build storage directory before each example
This commit is contained in:
parent
01f588edbc
commit
71ad3d294e
1 changed files with 3 additions and 2 deletions
|
@ -7,11 +7,12 @@ RSpec.configure do |config|
|
|||
Settings.gitlab_ci['builds_path'] = builds_path
|
||||
end
|
||||
|
||||
config.before(:each) do
|
||||
config.before(:all) do
|
||||
FileUtils.mkdir_p(builds_path)
|
||||
end
|
||||
|
||||
config.after(:each) do
|
||||
config.before(:each) do
|
||||
FileUtils.rm_rf(builds_path)
|
||||
FileUtils.mkdir_p(builds_path)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue