Skip to content

Commit 992eeaa

Browse files
committed
Skip new symlink unit tests on Windows
1 parent 444bde7 commit 992eeaa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/org/jenkinsci/plugins/workflow/libs/LibraryRetrieverTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
package org.jenkinsci.plugins.workflow.libs;
2626

2727
import hudson.FilePath;
28-
import hudson.model.TaskListener;
28+
import hudson.Functions;
2929
import hudson.util.StreamTaskListener;
3030
import java.nio.charset.StandardCharsets;
3131
import java.util.Set;
@@ -37,6 +37,7 @@
3737
import static org.hamcrest.Matchers.containsInAnyOrder;
3838
import static org.hamcrest.Matchers.is;
3939
import static org.junit.Assert.assertThrows;
40+
import static org.junit.Assume.assumeFalse;
4041
import org.junit.Rule;
4142
import org.junit.Test;
4243
import org.junit.rules.TemporaryFolder;
@@ -62,6 +63,7 @@ public class LibraryRetrieverTest {
6263
}
6364

6465
@Test public void safeSymlinks() throws Exception {
66+
assumeFalse(Functions.isWindows());
6567
FilePath work = new FilePath(tmp.newFolder());
6668
FilePath dir = work.child("dir");
6769
dir.child("vars/x.groovy").write("content", null);
@@ -76,6 +78,7 @@ public class LibraryRetrieverTest {
7678
}
7779

7880
@Test public void unsafeSymlinks() throws Exception {
81+
assumeFalse(Functions.isWindows());
7982
FilePath work = new FilePath(tmp.newFolder());
8083
FilePath dir = work.child("dir");
8184
dir.child("vars/x.groovy").write("content", null);

0 commit comments

Comments
 (0)