From f3a108619037d7f1e51230a8437af8f23764eca7 Mon Sep 17 00:00:00 2001 From: Thomas Grindinger Date: Thu, 28 Apr 2016 16:04:06 -0500 Subject: Tests: check exitstatus outside the conditional as a workaround `$?` may be `nil` here, some quirk on 2.4.0-dev. Split it up to fix. Signed-off-by: Jeremy Daer --- test/helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/helper.rb b/test/helper.rb index 7af0f27b..aa9c0e0a 100644 --- a/test/helper.rb +++ b/test/helper.rb @@ -2,7 +2,10 @@ require 'minitest/autorun' module Rack class TestCase < Minitest::Test - if `which lighttpd` && $?.success? + # Check for Lighttpd and launch it for tests if available. + `which lighttpd` + + if $?.success? begin # Keep this first. LIGHTTPD_PID = fork { -- cgit v1.2.3-24-ge0c7