diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-18 00:09:16 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-18 00:09:16 +0300 |
commit | 154b9bae142ba15fec753f44327654595094b879 (patch) | |
tree | 027f8ae024961778d5b00c77a72fe302f985d4f3 /lib/quality | |
parent | 2c156e3c7bbade01c36eee18327f1ced6eebea79 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/quality')
-rw-r--r-- | lib/quality/test_level.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/quality/test_level.rb b/lib/quality/test_level.rb index b53c6c7d9fc..bbd8b4dcc3f 100644 --- a/lib/quality/test_level.rb +++ b/lib/quality/test_level.rb @@ -7,6 +7,8 @@ module Quality TEST_LEVEL_FOLDERS = { migration: %w[ migrations + ], + background_migration: %w[ lib/gitlab/background_migration lib/ee/gitlab/background_migration ], @@ -70,7 +72,7 @@ module Quality case file_path # Detect migration first since some background migration tests are under # spec/lib/gitlab/background_migration and tests under spec/lib are unit by default - when regexp(:migration) + when regexp(:migration), regexp(:background_migration) :migration when regexp(:unit) :unit @@ -83,6 +85,10 @@ module Quality end end + def background_migration?(file_path) + !!(file_path =~ regexp(:background_migration)) + end + private def folders_pattern(level) |