Commit a35a22ae authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove test dir only if exists

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent cbe4891d
......@@ -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
......
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