@@ -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
@@ -26,33 +26,33 @@ public static void StartWorkerNode()
26
26
{
27
27
case RuntimePlatform . OSXPlayer :
28
28
case RuntimePlatform . OSXEditor :
29
- workerNode . StartInfo . FileName = $ "{ buildInfo } .app/Contents/MacOS/testproject";
29
+ workerProcess . StartInfo . FileName = $ "{ buildInfo } .app/Contents/MacOS/testproject";
30
30
break ;
31
31
case RuntimePlatform . WindowsPlayer :
32
32
case RuntimePlatform . WindowsEditor :
33
- workerNode . StartInfo . FileName = $ "{ buildInfo } .exe";
33
+ workerProcess . StartInfo . FileName = $ "{ buildInfo } .exe";
34
34
break ;
35
35
default :
36
36
throw new NotImplementedException ( $ "{ nameof ( StartWorkerNode ) } : Current platform is not supported") ;
37
37
}
38
38
}
39
39
catch ( FileNotFoundException )
40
40
{
41
- Debug . LogError ( $ "Couldn't find build info file. { buildInstructions } ") ;
41
+ Debug . LogError ( $ "Could not find build info file. { buildInstructions } ") ;
42
42
throw ;
43
43
}
44
44
45
- workerNode . StartInfo . UseShellExecute = false ;
46
- workerNode . StartInfo . RedirectStandardError = true ;
47
- workerNode . StartInfo . RedirectStandardOutput = true ;
48
- workerNode . StartInfo . Arguments = $ "{ IsWorkerArg } -popupwindow -screen-width 100 -screen-height 100";
45
+ workerProcess . StartInfo . UseShellExecute = false ;
46
+ workerProcess . StartInfo . RedirectStandardError = true ;
47
+ workerProcess . StartInfo . RedirectStandardOutput = true ;
48
+ workerProcess . StartInfo . Arguments = $ "{ IsWorkerArg } -popupwindow -screen-width 100 -screen-height 100";
49
49
// workerNode.StartInfo.Arguments += " -deepprofiling"; // enable for deep profiling
50
50
try
51
51
{
52
- var newProcessStarted = workerNode . Start ( ) ;
52
+ var newProcessStarted = workerProcess . Start ( ) ;
53
53
if ( ! newProcessStarted )
54
54
{
55
- throw new Exception ( "Failed to start process!" ) ;
55
+ throw new Exception ( "Failed to start worker process!" ) ;
56
56
}
57
57
}
58
58
catch ( Win32Exception e )
0 commit comments