From 6ca4faf0d03ff6f00fed0c8bc48a01e80d3a0e9f Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Wed, 21 May 2014 14:34:20 -0700 Subject: lz4: use full path of executable Closes #29468. Signed-off-by: Adam Vandenberg --- Library/Formula/lz4.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/lz4.rb b/Library/Formula/lz4.rb index bfeb73640..e1c490b5d 100644 --- a/Library/Formula/lz4.rb +++ b/Library/Formula/lz4.rb @@ -22,7 +22,7 @@ class Lz4 < Formula input_file = testpath/"in" input_file.write input output_file = testpath/"out" - system "sh", "-c", "cat #{input_file} | lz4 | lz4 -d > #{output_file}" - output_file.read == input + system "sh", "-c", "cat #{input_file} | #{bin}/lz4 | #{bin}/lz4 -d > #{output_file}" + assert_equal output_file.read, input end end -- cgit v1.2.3