File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -113,26 +113,22 @@ public function stop() {
113
113
fclose ($ this ->pipes [1 ]);
114
114
fclose ($ this ->pipes [2 ]);
115
115
116
- echo `ps aux| grep BrowserStackLocal `;
117
- echo `lsof -i:45691 `;
118
- echo $ this ->pid ;
119
-
120
116
if (strtoupper (substr (PHP_OS , 0 , 3 )) !== 'WIN ' )
121
117
exec ('kill -15 ' . $ this ->pid );
122
118
123
119
proc_terminate ($ this ->handle );
124
- //proc_close($this->handle);
125
- echo `ps aux| grep BrowserStackLocal `;
126
- echo `lsof -i:45691 `;
127
- echo $ this ->pid ;
128
-
129
120
while ($ this ->isRunning ())
130
121
sleep (1 );
131
122
}
132
123
}
133
124
134
125
public function command () {
135
- $ command = "exec $ this ->binary_path -logFile $ this ->logfile $ this ->folder_flag $ this ->key $ this ->folder_path $ this ->force_local_flag $ this ->local_identifier_flag $ this ->only_flag $ this ->only_automate_flag $ this ->proxy_host $ this ->proxy_port $ this ->proxy_user $ this ->proxy_pass $ this ->force_flag $ this ->verbose_flag $ this ->hosts " ;
126
+ $ exec = "exec " ;
127
+ // TODO to test on windows
128
+ if (strtoupper (substr (PHP_OS , 0 , 3 )) === 'WIN ' )
129
+ $ exec = "call " ;
130
+
131
+ $ command = "$ exec $ this ->binary_path -logFile $ this ->logfile $ this ->folder_flag $ this ->key $ this ->folder_path $ this ->force_local_flag $ this ->local_identifier_flag $ this ->only_flag $ this ->only_automate_flag $ this ->proxy_host $ this ->proxy_port $ this ->proxy_user $ this ->proxy_pass $ this ->force_flag $ this ->verbose_flag $ this ->hosts " ;
136
132
$ command = preg_replace ('/\s+/S ' , " " , $ command );
137
133
return $ command ;
138
134
}
You can’t perform that action at this time.
0 commit comments