Skip to content

Commit

Permalink
[MINVOKER-335] Use selector script for preparing test with symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed May 5, 2024
1 parent a741ea0 commit be7f699
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ def testFile = projectPath.resolve('test.txt')
Files.createDirectory(testDir)
Files.createFile(testFile)

Files.createSymbolicLink(projectPath.resolve('testDirLink'), Paths.get('testDir'))
Files.createSymbolicLink(projectPath.resolve('testLink.txt'), Paths.get('test.txt'))
// If FS does not support symlinks we should skip test
try {
Files.createSymbolicLink(projectPath.resolve('testDirLink'), Paths.get('testDir'))
Files.createSymbolicLink(projectPath.resolve('testLink.txt'), Paths.get('test.txt'))
} catch (IOException e) {
return false
}

true
return true

0 comments on commit be7f699

Please sign in to comment.