diff options
Diffstat (limited to 'test/exec/test_exec.rb')
-rw-r--r-- | test/exec/test_exec.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb index 5806210..583c81d 100644 --- a/test/exec/test_exec.rb +++ b/test/exec/test_exec.rb @@ -11,9 +11,12 @@ DEFAULT_RES = 0.2 $unicorn_bin = ENV['UNICORN_TEST_BIN'] || "unicorn" redirect_test_io do - do_test = system($unicorn_bin, '-v') or \ - STDERR.puts "#{$unicorn_bin} not found in PATH=#{ENV['PATH']}, "\ - "skipping this test" + do_test = system($unicorn_bin, '-v') +end + +unless do_test + STDERR.puts "#{$unicorn_bin} not found in PATH=#{ENV['PATH']}, " \ + "skipping this test" end begin |