Skip to content

Commit a76fc0f

Browse files
committed
prepare regression testing - not working atm
1 parent ac01913 commit a76fc0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ def getCdoPackagesFromSpack
3838
# list possible cdo modules provided by spack
3939
info = IO.popen([". #{SpackEnv}" ,
4040
'spack find -lp cdo | grep cdo'].join(';')).readlines.map(&:chomp).map(&:split).transpose
41-
42-
return {
41+
retval = {
4342
hash: info[0],
4443
version: info[1],
4544
path: info[2],
4645
}
46+
return retval
4747
end
4848

4949
desc "run each CDO binary from the regression tests"
@@ -130,7 +130,7 @@ end
130130
runTests = args.name.nil? \
131131
? "rake test#{lang}#{pythonRelease}" \
132132
: "rake test#{lang}#{pythonRelease}[#{args.name}]"
133-
getCdoPackagesFromSpack.each {|spackModule|
133+
getCdoPackagesFromSpack[:hash].each {|spackModule|
134134
cmd = spackEnvCommand[spackModule][runTests]
135135
puts spackModule.split.last.colorize(:green)
136136
sh cmd

0 commit comments

Comments
 (0)