mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-16 16:16:43 +10:00
Remove test dir only if exists
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
@@ -15,8 +15,12 @@ module TestEnv
|
||||
|
||||
# Clean /tmp/tests
|
||||
tmp_test_path = Rails.root.join('tmp', 'tests')
|
||||
FileUtils.rm_r(tmp_test_path)
|
||||
FileUtils.mkdir(tmp_test_path)
|
||||
|
||||
if File.directory?(tmp_test_path)
|
||||
FileUtils.rm_r(tmp_test_path)
|
||||
end
|
||||
|
||||
FileUtils.mkdir_p(tmp_test_path)
|
||||
|
||||
# Setup GitLab shell for test instance
|
||||
setup_gitlab_shell
|
||||
|
||||
Reference in New Issue
Block a user