Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
09663329
Commit
09663329
authored
Oct 01, 2021
by
Andrejs Cunskis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add preprod environment detection
parent
69086674
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
qa/qa/support/formatters/test_stats_formatter.rb
qa/qa/support/formatters/test_stats_formatter.rb
+3
-3
No files found.
qa/qa/support/formatters/test_stats_formatter.rb
View file @
09663329
...
...
@@ -116,11 +116,11 @@ module QA
@merge_request
||=
(
!!
env
(
'CI_MERGE_REQUEST_IID'
)
||
!!
env
(
'TOP_UPSTREAM_MERGE_REQUEST_IID'
)).
to_s
end
# Test run type from staging, canary or production env
# Test run type from staging, canary
, preprod
or production env
#
# @return [String
>
, nil]
# @return [String, nil]
def
run_type
return
unless
%w[staging canary production]
.
include?
(
project_name
)
return
unless
%w[staging canary pr
eprod pr
oduction]
.
include?
(
project_name
)
@run_type
||=
begin
test_subset
=
if
env
(
'NO_ADMIN'
)
==
'true'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment