[posix] forkpty-arg value as a single argument (#5772)

This commit is contained in:
Yakun Xu
2020-11-08 23:31:11 -08:00
committed by GitHub
parent 59b4a51f99
commit 6fda0786ed
4 changed files with 33 additions and 26 deletions
@@ -29,7 +29,7 @@
source "tests/scripts/expect/_common.exp"
spawn $env(OT_POSIX_APPS)/ot-cli "spinel+hdlc+uart://$env(OT_SIMULATION_APPS)/ncp/ot-rcp?forkpty-arg=--sleep-to-tx 1"
spawn $env(OT_POSIX_APPS)/ot-cli "spinel+hdlc+uart://$env(OT_SIMULATION_APPS)/ncp/ot-rcp?forkpty-arg=--sleep-to-tx&forkpty-arg=1"
set node_1 $spawn_id
expect_after {
timeout { exit 1 }
@@ -75,7 +75,7 @@ expect -re {(\d+)}
set channel $expect_out(1,string)
expect "Done"
spawn $env(OT_POSIX_APPS)/ot-cli "spinel+hdlc+uart://$env(OT_SIMULATION_APPS)/ncp/ot-rcp?forkpty-arg=--sleep-to-tx 2"
spawn $env(OT_POSIX_APPS)/ot-cli "spinel+hdlc+uart://$env(OT_SIMULATION_APPS)/ncp/ot-rcp?forkpty-arg=--sleep-to-tx&forkpty-arg=2"
set node_2 $spawn_id
expect_after {
timeout { exit 1 }