php: fix scenario_config command

The flag "-c" should be in an argument.
pull/12796/head
Michael Darakananda 7 years ago
parent f9a39ac7e2
commit b268629245
  1. 8
      tools/run_tests/performance/scenario_config.py

@ -809,7 +809,7 @@ class PhpLanguage:
def worker_cmdline(self):
if self.use_protobuf_c_extension:
return ['tools/run_tests/performance/run_worker_php.sh -c']
return ['tools/run_tests/performance/run_worker_php.sh', '-c']
return ['tools/run_tests/performance/run_worker_php.sh']
def worker_port_offset(self):
@ -819,14 +819,14 @@ class PhpLanguage:
php_extension_mode='php_protobuf_php_extension'
if self.use_protobuf_c_extension:
php_extension_mode='php_protobuf_c_extension'
yield _ping_pong_scenario(
'%s_to_cpp_protobuf_sync_unary_ping_pong' % php_extension_mode,
'%s_to_cpp_protobuf_sync_unary_ping_pong' % php_extension_mode,
rpc_type='UNARY', client_type='SYNC_CLIENT', server_type='SYNC_SERVER',
server_language='c++', async_server_threads=1)
yield _ping_pong_scenario(
'%s_to_cpp_protobuf_sync_streaming_ping_pong' % php_extension_mode,
'%s_to_cpp_protobuf_sync_streaming_ping_pong' % php_extension_mode,
rpc_type='STREAMING', client_type='SYNC_CLIENT', server_type='SYNC_SERVER',
server_language='c++', async_server_threads=1)

Loading…
Cancel
Save