Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-31 15:08:33 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-31 15:08:33 +0300
commit1808454313ed75c92e1384466e8c83bfbc8ae25e (patch)
tree5c006c158fd796dc6d21e9bd771542f2fb0c24e2 /lib/gitlab/runtime.rb
parentfd3a95f07ae9cd78fecffcfa5de4494f933a7808 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/runtime.rb')
-rw-r--r--lib/gitlab/runtime.rb10
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]