From cd57c3bf5a09efbb76ea74f404e7aaf9dfb0951b Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 8 Nov 2019 14:23:12 +0000 Subject: [PATCH] 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. --- lib/autospec/manager.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/autospec/manager.rb b/lib/autospec/manager.rb index 75ea4412a3..cefce3e76a 100644 --- a/lib/autospec/manager.rb +++ b/lib/autospec/manager.rb @@ -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 }