File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
main/groovy/nextflow/spack
test/groovy/nextflow/spack Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ class SpackCache {
299
299
}
300
300
301
301
@PackageScope
302
- int runCommand ( String cmd ) {
302
+ void runCommand ( String cmd ) {
303
303
log. trace """ spack env create
304
304
command: $cmd
305
305
timeout: $createTimeout """ . stripIndent()
@@ -317,7 +317,6 @@ class SpackCache {
317
317
msg + = err. toString(). trim(). indent(' ' )
318
318
throw new IllegalStateException (msg)
319
319
}
320
- return status
321
320
}
322
321
323
322
/**
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ class SpackCacheTest extends Specification {
117
117
then :
118
118
1 * cache. spackPrefixPath(ENV ) >> PREFIX
119
119
0 * cache. isYamlFilePath(ENV )
120
- 1 * cache. runCommand( " spack env activate $PREFIX ; spack install -y ; spack env deactivate" )
120
+ 1 * cache. runCommand( " spack env activate $PREFIX ; spack install -y ; spack env deactivate" ) >> null
121
121
result == PREFIX
122
122
123
123
when :
You can’t perform that action at this time.
0 commit comments