@@ -13,7 +13,7 @@ public class MultiprocessOrchestration
13
13
14
14
public static void StartWorkerNode ( )
15
15
{
16
- var workerNode = new Process ( ) ;
16
+ var workerProcess = new Process ( ) ;
17
17
18
18
//TODO this should be replaced eventually by proper orchestration for all supported platforms
19
19
// Starting new local processes is a solution to help run perf tests locally. CI should have multi machine orchestration to
@@ -27,33 +27,33 @@ public static void StartWorkerNode()
27
27
{
28
28
case RuntimePlatform . OSXPlayer :
29
29
case RuntimePlatform . OSXEditor :
30
- workerNode . StartInfo . FileName = $ "{ buildPath } .app/Contents/MacOS/testproject";
30
+ workerProcess . StartInfo . FileName = $ "{ buildPath } .app/Contents/MacOS/testproject";
31
31
break ;
32
32
case RuntimePlatform . WindowsPlayer :
33
33
case RuntimePlatform . WindowsEditor :
34
- workerNode . StartInfo . FileName = $ "{ buildPath } .exe";
34
+ workerProcess . StartInfo . FileName = $ "{ buildPath } .exe";
35
35
break ;
36
36
default :
37
37
throw new NotImplementedException ( $ "{ nameof ( StartWorkerNode ) } : Current platform is not supported") ;
38
38
}
39
39
}
40
40
catch ( FileNotFoundException )
41
41
{
42
- Debug . LogError ( $ "Couldn't find build info file. { buildInstructions } ") ;
42
+ Debug . LogError ( $ "Could not find build info file. { buildInstructions } ") ;
43
43
throw ;
44
44
}
45
45
46
- workerNode . StartInfo . UseShellExecute = false ;
47
- workerNode . StartInfo . RedirectStandardError = true ;
48
- workerNode . StartInfo . RedirectStandardOutput = true ;
49
- workerNode . StartInfo . Arguments = $ "{ IsWorkerArg } -popupwindow -screen-width 100 -screen-height 100";
46
+ workerProcess . StartInfo . UseShellExecute = false ;
47
+ workerProcess . StartInfo . RedirectStandardError = true ;
48
+ workerProcess . StartInfo . RedirectStandardOutput = true ;
49
+ workerProcess . StartInfo . Arguments = $ "{ IsWorkerArg } -popupwindow -screen-width 100 -screen-height 100";
50
50
// workerNode.StartInfo.Arguments += " -deepprofiling"; // enable for deep profiling
51
51
try
52
52
{
53
- var newProcessStarted = workerNode . Start ( ) ;
53
+ var newProcessStarted = workerProcess . Start ( ) ;
54
54
if ( ! newProcessStarted )
55
55
{
56
- throw new Exception ( "Failed to start process!" ) ;
56
+ throw new Exception ( "Failed to start worker process!" ) ;
57
57
}
58
58
}
59
59
catch ( Win32Exception e )
0 commit comments