diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-31 15:08:33 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-31 15:08:33 +0300 |
commit | 1808454313ed75c92e1384466e8c83bfbc8ae25e (patch) | |
tree | 5c006c158fd796dc6d21e9bd771542f2fb0c24e2 /lib/gitlab/runtime.rb | |
parent | fd3a95f07ae9cd78fecffcfa5de4494f933a7808 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/runtime.rb')
-rw-r--r-- | lib/gitlab/runtime.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/gitlab/runtime.rb b/lib/gitlab/runtime.rb index 97f7a8e2800..64ab020a30e 100644 --- a/lib/gitlab/runtime.rb +++ b/lib/gitlab/runtime.rb @@ -16,7 +16,7 @@ module Gitlab matches << :console if console? matches << :sidekiq if sidekiq? matches << :rake if rake? - matches << :rspec if rspec? + matches << :test_suite if test_suite? if matches.one? matches.first @@ -48,8 +48,8 @@ module Gitlab !!(defined?(::Rake) && Rake.application.top_level_tasks.any?) end - def rspec? - Rails.env.test? && process_name == 'rspec' + def test_suite? + Rails.env.test? end def console? @@ -64,10 +64,6 @@ module Gitlab puma? || sidekiq? end - def process_name - File.basename($0) - end - def max_threads if puma? Puma.cli_config.options[:max_threads] |