diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-07-24 19:54:06 +0300 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2015-07-24 19:54:06 +0300 |
commit | 39a7e210a3484fb84683d53c2cf5e0f7ef0c3a80 (patch) | |
tree | 467f56cc7b88952be783765603a7686a940c9cb7 /spec/support | |
parent | db0fce322a19e20e755abca772ceb2918d815ea0 (diff) |
Use a separate backup test directory and nuke its contents
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/test_env.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb index 8bdd6b43cdd..2bdb64ff314 100644 --- a/spec/support/test_env.rb +++ b/spec/support/test_env.rb @@ -29,6 +29,7 @@ module TestEnv clean_test_path FileUtils.mkdir_p(repos_path) + FileUtils.mkdir_p(backup_path) # Setup GitLab shell for test instance setup_gitlab_shell @@ -121,6 +122,10 @@ module TestEnv Gitlab.config.gitlab_shell.repos_path end + def backup_path + Gitlab.config.backup.path + end + def copy_forked_repo_with_submodules(project) base_repo_path = File.expand_path(forked_repo_path_bare) target_repo_path = File.expand_path(repos_path + "/#{project.namespace.path}/#{project.path}.git") |