File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -29,14 +29,12 @@ public enum Fixture {
29
29
for file: String ,
30
30
on fileSystem: FileSystem = localFileSystem
31
31
) -> AbsolutePath ? {
32
- let packageRootPath = AbsolutePath ( #file)
33
- . parentDirectory
34
- . parentDirectory
35
- . parentDirectory
36
- let fixturePath = packageRootPath
37
- . appending ( component: " TestInputs " )
38
- . appending ( relativePath)
39
- . appending ( component: file)
32
+ let packageRootPath : AbsolutePath =
33
+ AbsolutePath ( #file) . parentDirectory. parentDirectory. parentDirectory
34
+ let fixturePath =
35
+ AbsolutePath ( relativePath. pathString,
36
+ relativeTo: packageRootPath. appending ( component: " TestInputs " ) )
37
+ . appending ( component: file)
40
38
41
39
// Check that the fixture is really there.
42
40
guard fileSystem. exists ( fixturePath) else {
You can’t perform that action at this time.
0 commit comments