Closed tonyluj closed 2 years ago
smc_run does not handle single quotes correctly, strings in single quotes are treated as two arguments, such as:
smc_run wrk http://127.0.0.1/ -t64 -c 1000 -d 10 -H 'Connection: Close'
This patch fixes it by passing parameters to exec directly and keep them as them are. Also remove the unused command_line variable.
Signed-off-by: Tony Lu tonylu@linux.alibaba.com
smc_run does not handle single quotes correctly, strings in single quotes are treated as two arguments, such as:
smc_run wrk http://127.0.0.1/ -t64 -c 1000 -d 10 -H 'Connection: Close'
This patch fixes it by passing parameters to exec directly and keep them as them are. Also remove the unused command_line variable.
Signed-off-by: Tony Lu tonylu@linux.alibaba.com