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:
David Taylor 2019-11-08 14:23:12 +00:00 committed by GitHub
parent da50cd554a
commit cd57c3bf5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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 }