mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 17:06:01 +08:00
DEV: Abort autospec on [ENTER], even if no specs have failed (#8320)
When starting autospec, it says > Press [ENTER] to stop the current run However, [ENTER] does nothing unless a spec has failed. Sometimes I want to abort anyway, so that the run is restarted.
This commit is contained in:
@ -366,8 +366,9 @@ class Autospec::Manager
|
|||||||
puts
|
puts
|
||||||
puts
|
puts
|
||||||
if specs.length == 0
|
if specs.length == 0
|
||||||
puts "No specs have failed yet! "
|
puts "No specs have failed yet! Aborting anyway"
|
||||||
puts
|
puts
|
||||||
|
abort_runners
|
||||||
else
|
else
|
||||||
puts "The following specs have failed:"
|
puts "The following specs have failed:"
|
||||||
specs.each { |s| puts s }
|
specs.each { |s| puts s }
|
||||||
|
Reference in New Issue
Block a user