about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-03-01 00:03:29 -0800
committerEric Wong <normalperson@yhbt.net>2009-03-03 11:13:10 -0800
commit9a7e1f1a7e986a59eb4be9b6a4d093f3366c9c72 (patch)
tree5198158b519fea934252f2eccf18be3a4611f8c1 /test
parent609c562c3c273ef13c64dfcd56b29115fd8fd81f (diff)
downloadunicorn-9a7e1f1a7e986a59eb4be9b6a4d093f3366c9c72.tar.gz
Oops, that was making debugging tests quite difficult.
Diffstat (limited to 'test')
-rw-r--r--test/exec/test_exec.rb9
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