Skip to content
代码片段 群组 项目
未验证 提交 d2425716 编辑于 作者: Nick Thomas's avatar Nick Thomas
浏览文件

CE backport for "Use gitlab-elasticsearch-indexer in tests"

上级 112193e8
No related branches found
No related tags found
无相关合并请求
1.1.0
......@@ -135,7 +135,7 @@ def clean_test_path
def clean_gitlab_test_path
Dir[TMP_TEST_PATH].each do |entry|
if File.basename(entry) =~ /\A(gitlab-(test|test_bare|test-fork|test-fork_bare))\z/
unless test_dirs.include?(File.basename(entry))
FileUtils.rm_rf(entry)
end
end
......@@ -312,6 +312,18 @@ def with_empty_bare_repository(name = nil)
private
# These are directories that should be preserved at cleanup time
def test_dirs
@test_dirs ||= %w[
gitaly
gitlab-shell
gitlab-test
gitlab-test_bare
gitlab-test-fork
gitlab-test-fork_bare
]
end
def factory_repo_path
@factory_repo_path ||= Rails.root.join('tmp', 'tests', factory_repo_name)
end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册