diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-02 16:01:33 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-02 16:01:33 -0400 |
commit | 1c49809bf89e6e0ebe869476044e9e6dda4a0545 (patch) | |
tree | cb55cd36b68344093b5f8821f7a9c69c21e48b61 /spec/support | |
parent | cfbff017d0ba1ba4fd896b4762b23853f123c60a (diff) | |
download | gitlab-ce-1c49809bf89e6e0ebe869476044e9e6dda4a0545.tar.gz |
Don't delete gitlab-test-fork folder after every test run
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/test_env.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb index d1844bd2b87..6d4a8067910 100644 --- a/spec/support/test_env.rb +++ b/spec/support/test_env.rb @@ -35,6 +35,7 @@ module TestEnv # Create repository for FactoryGirl.create(:project) setup_factory_repo + # Create repository for FactoryGirl.create(:forked_project_with_submodules) setup_forked_repo end @@ -54,7 +55,7 @@ module TestEnv tmp_test_path = Rails.root.join('tmp', 'tests', '**') Dir[tmp_test_path].each do |entry| - unless File.basename(entry) =~ /\Agitlab-(shell|test)\z/ + unless File.basename(entry) =~ /\Agitlab-(shell|test|test-fork)\z/ FileUtils.rm_rf(entry) end end |