From 9448bdf5ad563642030ac03ce6caeb9fabeca277 Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sun, 10 Jan 2016 08:05:46 +0000 Subject: [PATCH] fibjs: prefer shell_output in test do --- Formula/fibjs.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Formula/fibjs.rb b/Formula/fibjs.rb index 19e8d5a61e..36a315d4ad 100644 --- a/Formula/fibjs.rb +++ b/Formula/fibjs.rb @@ -14,7 +14,7 @@ class Fibjs < Formula sha256 "dd613776c5fe0bf2719ebfa910a39cdd23c94eb3d9deeafc90deefb158604fc2" => :mavericks end - depends_on "cmake" => :build + depends_on "cmake" => :build def install system "./build", "Release", "-j#{ENV.make_jobs}" @@ -25,8 +25,7 @@ class Fibjs < Formula path = testpath/"test.js" path.write "console.log('hello');" - output = `#{bin}/fibjs #{path}`.strip + output = shell_output("#{bin}/fibjs #{path}").strip assert_equal "hello", output - assert_equal 0, $?.exitstatus end end