File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -100,16 +100,17 @@ private static async Task InitializeInstance(ITestOutputHelper output)
100
100
psi . Arguments = $ "/c npm { psi . Arguments } ";
101
101
}
102
102
103
+ // It's important that we get the folder value before we start the process to prevent
104
+ // untracked processes when the tracking folder is not correctly configure.
105
+ var trackingFolder = GetProcessTrackingFolder ( ) ;
106
+
103
107
if ( ! string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "helix" ) ) )
104
108
{
105
109
// Just create a random tracking folder on helix
106
110
trackingFolder = Path . Combine ( Directory . GetCurrentDirectory ( ) , Path . GetRandomFileName ( ) ) ;
107
111
Directory . CreateDirectory ( trackingFolder ) ;
108
112
}
109
113
110
- // It's important that we get the folder value before we start the process to prevent
111
- // untracked processes when the tracking folder is not correctly configure.
112
- var trackingFolder = GetProcessTrackingFolder ( ) ;
113
114
if ( ! Directory . Exists ( trackingFolder ) )
114
115
{
115
116
throw new InvalidOperationException ( $ "Invalid tracking folder. Set the 'SeleniumProcessTrackingFolder' MSBuild property to a valid folder.") ;
You can’t perform that action at this time.
0 commit comments