groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [groovy] 02/02: make test more robust across various environments
Date Sat, 11 Jan 2020 01:56:32 GMT
This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 1cfda019d47930d7388cc6aed5e5cf1ac3dc2359
Author: Paul King <paulk@asert.com.au>
AuthorDate: Sat Jan 11 11:56:16 2020 +1000

    make test more robust across various environments
---
 src/test/groovy/grape/GrapeIvyTest.groovy | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/test/groovy/grape/GrapeIvyTest.groovy b/src/test/groovy/grape/GrapeIvyTest.groovy
index 6238857..3210408 100644
--- a/src/test/groovy/grape/GrapeIvyTest.groovy
+++ b/src/test/groovy/grape/GrapeIvyTest.groovy
@@ -24,6 +24,7 @@ import org.junit.Test
 
 import static groovy.test.GroovyAssert.assertScript
 import static groovy.test.GroovyAssert.shouldFail
+import static org.junit.Assume.assumeTrue
 
 final class GrapeIvyTest {
 
@@ -464,6 +465,7 @@ final class GrapeIvyTest {
 
     @Test // GROOVY-9312
     void testResolveSucceedsFromLocalMavenRepository() {
+        assumeTrue System.getProperty('maven.home') != null
         def tempDir = File.createTempDir()
 
         new File(tempDir, 'pom.xml').write '''\


Mime
View raw message