BigW Consortium Gitlab

Commit 71ad3d29 by Grzegorz Bizon

Clear test build storage directory before each example

parent 01f588ed
...@@ -7,11 +7,12 @@ RSpec.configure do |config| ...@@ -7,11 +7,12 @@ RSpec.configure do |config|
Settings.gitlab_ci['builds_path'] = builds_path Settings.gitlab_ci['builds_path'] = builds_path
end end
config.before(:each) do config.before(:all) do
FileUtils.mkdir_p(builds_path) FileUtils.mkdir_p(builds_path)
end end
config.after(:each) do config.before(:each) do
FileUtils.rm_rf(builds_path) FileUtils.rm_rf(builds_path)
FileUtils.mkdir_p(builds_path)
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment