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:
Diffstat (limited to 'spec/support/system_exit_detected.rb')
-rw-r--r--spec/support/system_exit_detected.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/support/system_exit_detected.rb b/spec/support/system_exit_detected.rb
index 86c6af3ba8c..62158e3877f 100644
--- a/spec/support/system_exit_detected.rb
+++ b/spec/support/system_exit_detected.rb
@@ -10,6 +10,9 @@ RSpec.configure do |config|
# because it'll skip any following tests from running.
# Convert it to something that won't skip everything.
# See https://gitlab.com/gitlab-org/gitlab/-/issues/350060
+
+ raise if ENV['RSPEC_BYPASS_SYSTEM_EXIT_PROTECTION'] == 'true'
+
raise SystemExitDetected, "SystemExit should be rescued in the tests!"
end
end