A platform for community discussion. Free, open, simple.
DEV: Remove broken CLI option in `bin/turbo_rspec` (#32388)
Alan Guo Xiang Tan3cc2b8540f21
diff --git a/bin/turbo_rspec b/bin/turbo_rspecindex 5e3ec255963..ebedb1068f5 100755--- a/bin/turbo_rspec+++ b/bin/turbo_rspec@@ -15,7 +15,6 @@ profile = falseprofile_print_slowest_examples_count = 10use_runtime_info = nilenable_system_tests = nil-disable_system_tests = nilretry_and_log_flaky_tests = ENV["DISCOURSE_TURBO_RSPEC_RETRY_AND_LOG_FLAKY_TESTS"].to_s == "1"OptionParser@@ -66,21 +65,12 @@ OptionParseropts.on("--enable-system-tests", "Run the system tests (defaults false)") doenable_system_tests = trueend-- opts.on("--disable-system-tests", "Don't run the system tests (defaults true)") do- disable_system_tests = true- endend.parse!(ARGV)-if enable_system_tests && disable_system_tests- STDERR.puts "Error: I'm not sure how to enable and disable system tests simultaneously"- exit 1-end-# OptionParser modifies ARGV, leaving the leftover arguments in ARGVif ARGV.empty?- if !enable_system_tests && !disable_system_tests+ if !enable_system_testsSTDERR.puts "Not running system tests since it wasn't explicitly specified"end@@ -95,9 +85,7 @@ if ARGV.empty?use_runtime_info = true if use_runtime_info.nil?else- if enable_system_tests || disable_system_tests- STDERR.puts "Ignoring system test options since files were specified"- end+ STDERR.puts "Ignoring system test options since files were specified" if enable_system_testsfiles = ARGVuse_runtime_info = false if use_runtime_info.nil?