File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/installer/tests/TestUtils Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,18 @@ static TestContext()
44
44
45
45
TestAssetsOutput = GetTestContextVariable ( "TEST_ASSETS_OUTPUT" ) ;
46
46
TestArtifactsPath = GetTestContextVariable ( "TEST_ARTIFACTS" ) ;
47
+
48
+ // On macOS, /tmp/ is a symlink. Running apps out of it will resolve the path, so determine the resolved path here.
49
+ if ( OperatingSystem . IsMacOS ( ) )
50
+ {
51
+ string tmpPath = "/tmp/" ;
52
+ DirectoryInfo tmp = new DirectoryInfo ( tmpPath [ ..^ 1 ] ) ; // No trailing slash in order to properly check the link target
53
+ if ( tmp . LinkTarget != null && TestArtifactsPath . StartsWith ( tmpPath ) )
54
+ {
55
+ TestArtifactsPath = Path . Combine ( tmp . ResolveLinkTarget ( true ) . FullName , TestArtifactsPath [ tmpPath . Length ..] ) ;
56
+ }
57
+ }
58
+
47
59
Directory . CreateDirectory ( TestArtifactsPath ) ;
48
60
49
61
// Create an empty global.json, so running tests from test artifacts is not affected
You can’t perform that action at this time.
0 commit comments