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:
parent
da50cd554a
commit
cd57c3bf5a
|
@ -366,8 +366,9 @@ class Autospec::Manager
|
|||
puts
|
||||
puts
|
||||
if specs.length == 0
|
||||
puts "No specs have failed yet! "
|
||||
puts "No specs have failed yet! Aborting anyway"
|
||||
puts
|
||||
abort_runners
|
||||
else
|
||||
puts "The following specs have failed:"
|
||||
specs.each { |s| puts s }
|
||||
|
|
Loading…
Reference in New Issue