From c72c3096210dd5bc0457b5cdc1a72a6391cd2eb5 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Mon, 19 May 2014 20:45:36 -0700 Subject: salt: use full path of executable Closes #29416. Signed-off-by: Adam Vandenberg --- Library/Formula/salt.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/salt.rb b/Library/Formula/salt.rb index 72ffbb3d1..98aa51ad8 100644 --- a/Library/Formula/salt.rb +++ b/Library/Formula/salt.rb @@ -36,9 +36,8 @@ class Salt < Formula test do ENV['SALTPATH'] = "#{prefix}/data" cp_r Dir[prefix + '03d4ag' + '*'], '.' - # I don't know why I need to redo the cd on the shell, but it doesn't work otherwise - system "cd #{Dir.pwd}; #{bin}/snfit lc-03D4ag.list" - system "cat result_salt2.dat" + system bin/"snfit", testpath/"lc-03D4ag.list" + assert File.exist?("result_salt2.dat") end def caveats -- cgit v1.2.3