Skip to content

Commit 868374d

Browse files
committed
Fix Spack failing test
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent 5e51718 commit 868374d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

modules/nextflow/src/main/groovy/nextflow/spack/SpackCache.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ class SpackCache {
299299
}
300300

301301
@PackageScope
302-
int runCommand( String cmd ) {
302+
void runCommand( String cmd ) {
303303
log.trace """spack env create
304304
command: $cmd
305305
timeout: $createTimeout""".stripIndent()
@@ -317,7 +317,6 @@ class SpackCache {
317317
msg += err.toString().trim().indent(' ')
318318
throw new IllegalStateException(msg)
319319
}
320-
return status
321320
}
322321

323322
/**

modules/nextflow/src/test/groovy/nextflow/spack/SpackCacheTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class SpackCacheTest extends Specification {
117117
then:
118118
1 * cache.spackPrefixPath(ENV) >> PREFIX
119119
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
121121
result == PREFIX
122122

123123
when:

0 commit comments

Comments
 (0)