Skip to content

Commit be7f699

Browse files
[MINVOKER-335] Use selector script for preparing test with symlinks
1 parent a741ea0 commit be7f699

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/it/MINVOKER-335-symlinks-in-source/setup.groovy src/it/MINVOKER-335-symlinks-in-source/selector.groovy

+8-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ def testFile = projectPath.resolve('test.txt')
2828
Files.createDirectory(testDir)
2929
Files.createFile(testFile)
3030

31-
Files.createSymbolicLink(projectPath.resolve('testDirLink'), Paths.get('testDir'))
32-
Files.createSymbolicLink(projectPath.resolve('testLink.txt'), Paths.get('test.txt'))
31+
// If FS does not support symlinks we should skip test
32+
try {
33+
Files.createSymbolicLink(projectPath.resolve('testDirLink'), Paths.get('testDir'))
34+
Files.createSymbolicLink(projectPath.resolve('testLink.txt'), Paths.get('test.txt'))
35+
} catch (IOException e) {
36+
return false
37+
}
3338

34-
true
39+
return true

0 commit comments

Comments
 (0)