aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/salt.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/Library/Formula/salt.rb b/Library/Formula/salt.rb
index 2a2bb1175..d93cd8f18 100644
--- a/Library/Formula/salt.rb
+++ b/Library/Formula/salt.rb
@@ -125,14 +125,12 @@ class Salt < Formula
end
end
- def test
- mktemp do
- ENV['PATHMODEL'] = "#{prefix}/data"
- cp_r Dir[prefix + '04D3gx' + '*'], '.'
- # 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 lc2fit_g.dat lc2fit_r.dat lc2fit_i.dat lc2fit_z.dat"
- system "cat result_salt2.dat result_salt2_SNLS3.dat"
- end
+ test do
+ ENV['PATHMODEL'] = "#{prefix}/data"
+ cp_r Dir[prefix + '04D3gx' + '*'], '.'
+ # 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 lc2fit_g.dat lc2fit_r.dat lc2fit_i.dat lc2fit_z.dat"
+ system "cat result_salt2.dat result_salt2_SNLS3.dat"
end
def caveats