summaryrefslogtreecommitdiff
path: root/qa/qa/specs/runner.rb
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2018-10-08 14:56:32 -0400
committerMark Lapierre <mlapierre@gitlab.com>2018-10-08 15:04:08 -0400
commit03ee488f93d4ccce5bb6d476ad33e210fb94a56b (patch)
tree5a0433cb173a90352b778f8787a8c44faac134b5 /qa/qa/specs/runner.rb
parent1540d51a54f6c2e63335824deb93dad75aba1aec (diff)
downloadgitlab-ce-03ee488f93d4ccce5bb6d476ad33e210fb94a56b.tar.gz
Allow the registration e2e test to be skipped
If SIGNUP_DISABLED is true skip any tests with a context :skip_signup_disabled. The context is set for the registration tests. This allows the tests to be skipped when run on the staging, which doesn't allow registration
Diffstat (limited to 'qa/qa/specs/runner.rb')
-rw-r--r--qa/qa/specs/runner.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/qa/qa/specs/runner.rb b/qa/qa/specs/runner.rb
index fea0ef94df3..ad397c13f0c 100644
--- a/qa/qa/specs/runner.rb
+++ b/qa/qa/specs/runner.rb
@@ -23,6 +23,8 @@ module QA
args.push(%w[--tag ~orchestrated]) unless (%w[-t --tag] & options).any?
end
+ args.push(%w[--tag ~skip_signup_disabled]) if QA::Runtime::Env.signup_disabled?
+
args.push(options)
args.push(DEFAULT_TEST_PATH_ARGS) unless options.any? { |opt| opt =~ %r{/features/} }