summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-23 13:27:45 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-11-23 13:51:05 +0100
commit71ad3d294ec6ddfb36346e19e6b50ec5eb8d4ef2 (patch)
tree84574461af0fcddfab09f7d657d30d13e76265fc
parent01f588edbcf1f0f0453cae1677c9372c76e25775 (diff)
downloadgitlab-ce-fix/invalid-storage-cleanup-affecting-test-suite.tar.gz
Clear test build storage directory before each examplefix/invalid-storage-cleanup-affecting-test-suite
-rw-r--r--spec/support/setup_builds_storage.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/support/setup_builds_storage.rb b/spec/support/setup_builds_storage.rb
index fd729434898..2e7c88bfc09 100644
--- a/spec/support/setup_builds_storage.rb
+++ b/spec/support/setup_builds_storage.rb
@@ -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