| 1 |
Description: ignoring the files that touch subdirs of $HOME |
| 2 |
Groovy files are looked for by grape tests, see the output of those tests when |
| 3 |
we let them run. |
| 4 |
Author: Pierre Gruet <[email protected]> |
| 5 |
Forwarded: not-needed |
| 6 |
Last-Update: 2021-05-14 |
| 7 |
|
| 8 |
--- a/src/test/java/ch/grengine/GrengineGrapeTest.java |
| 9 |
+++ b/src/test/java/ch/grengine/GrengineGrapeTest.java |
| 10 |
@@ -33,6 +33,7 @@ |
| 11 |
import groovy.grape.Grape; |
| 12 |
import groovy.lang.GroovyClassLoader; |
| 13 |
import org.codehaus.groovy.control.CompilerConfiguration; |
| 14 |
+import org.junit.jupiter.api.Disabled; |
| 15 |
import org.junit.jupiter.api.Test; |
| 16 |
|
| 17 |
import static org.hamcrest.CoreMatchers.instanceOf; |
| 18 |
@@ -44,6 +45,7 @@ |
| 19 |
|
| 20 |
class GrengineGrapeTest { |
| 21 |
|
| 22 |
+ @Disabled("touches $HOME") |
| 23 |
@Test |
| 24 |
void testHelloWorldWithGrape_unwrapped() { |
| 25 |
printVersions(); |
| 26 |
@@ -52,6 +54,7 @@ |
| 27 |
"println \"Grape: 'C' is upper case: ${Ascii.isUpperCase('C' as char)}\""); |
| 28 |
} |
| 29 |
|
| 30 |
+ @Disabled("touches $HOME") |
| 31 |
@Test |
| 32 |
void testHelloWorldWithGrape_wrapped() { |
| 33 |
printVersions(); |
| 34 |
@@ -70,6 +73,7 @@ |
| 35 |
System.out.println("Groovy: " + GroovyClassLoader.class.getPackage().getImplementationVersion()); |
| 36 |
} |
| 37 |
|
| 38 |
+ @Disabled("touches $HOME") |
| 39 |
@Test |
| 40 |
void testNoGrapeByDefault() { |
| 41 |
try { |
| 42 |
--- a/src/test/java/ch/grengine/code/groovy/DefaultGroovyCompilerTest.java |
| 43 |
+++ b/src/test/java/ch/grengine/code/groovy/DefaultGroovyCompilerTest.java |
| 44 |
@@ -47,6 +47,7 @@ |
| 45 |
import org.codehaus.groovy.control.CompilerConfiguration; |
| 46 |
import org.codehaus.groovy.control.customizers.ImportCustomizer; |
| 47 |
import org.hamcrest.CoreMatchers; |
| 48 |
+import org.junit.jupiter.api.Disabled; |
| 49 |
import org.junit.jupiter.api.Test; |
| 50 |
|
| 51 |
import static ch.grengine.TestUtil.assertThrowsMessageIs; |
| 52 |
@@ -828,6 +829,7 @@ |
| 53 |
return merged; |
| 54 |
} |
| 55 |
|
| 56 |
+ @Disabled("touches $HOME") |
| 57 |
@Test |
| 58 |
void testGrabs() { |
| 59 |
try { |
| 60 |
@@ -969,6 +971,7 @@ |
| 61 |
} |
| 62 |
} |
| 63 |
|
| 64 |
+ @Disabled("touches $HOME") |
| 65 |
@Test |
| 66 |
void testConcurrentGrabs() { |
| 67 |
try { |
| 68 |
@@ -1053,4 +1056,4 @@ |
| 69 |
} |
| 70 |
} |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
+} |