From 982238b16790ef5dc97ee2db8652cab19cf94cd9 Mon Sep 17 00:00:00 2001 From: Mike Szyndel Date: Thu, 22 May 2014 12:31:35 +0200 Subject: [PATCH] Exit with code only if code is present --- lib/simplecov/defaults.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/simplecov/defaults.rb b/lib/simplecov/defaults.rb index 0b951ab6..5bd06454 100644 --- a/lib/simplecov/defaults.rb +++ b/lib/simplecov/defaults.rb @@ -77,7 +77,7 @@ SimpleCov::LastRun.write(:result => {:covered_percent => covered_percent}) end - exit @exit_status # Force exit with stored status (see github issue #5) + exit @exit_status if @exit_status # Force exit with stored status (see github issue #5) end # Autoload config from ~/.simplecov if present