From 1b68dbc826072bd886adc4acf96af66577062234 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 11 Mar 2022 14:21:30 +0300 Subject: [PATCH] ttcn3/tmux/ttcn3-bts-test.sh: fix incorrectly passed --trx arguments For some reason, on Arch Linux: $ file /bin/sh /bin/sh: symbolic link to bash $ sh --version GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu) the '--trx' arguments are getting passed incorrectly: $ ./fake_trx.py TRX1@127.0.0.1:5700/1 TRX2@127.0.0.1:5700/2 TRX3@127.0.0.1:5700/3 fake_trx: error: unrecognized arguments: TRX1@127.0.0.1:5700/1 TRX2@127.0.0.1:5700/2 TRX3@127.0.0.1:5700/3 Let's send each argument separately. Change-Id: Ibf28ac013c426baba491af45e2ae46f37685a402 --- ttcn3/tmux/ttcn3-bts-test.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ttcn3/tmux/ttcn3-bts-test.sh b/ttcn3/tmux/ttcn3-bts-test.sh index e506071..4d05d07 100755 --- a/ttcn3/tmux/ttcn3-bts-test.sh +++ b/ttcn3/tmux/ttcn3-bts-test.sh @@ -46,9 +46,10 @@ tmux send-keys -t $SESSION:1.1 "cd $OBB_DIR/src/host/trxcon" C-m tmux send-keys -t $SESSION:1.1 "./trxcon -s /tmp/osmocom_l2" C-m # Start fake_trx.py tmux send-keys -t $SESSION:1.2 "cd $OBB_DIR/src/target/trx_toolkit" C-m -tmux send-keys -t $SESSION:1.2 "./fake_trx.py \ - --trx TRX1@127.0.0.1:5700/1 \ - --trx TRX2@127.0.0.1:5700/2 \ - --trx TRX3@127.0.0.1:5700/3" C-m +tmux send-keys -t $SESSION:1.2 "./fake_trx.py" +tmux send-keys -t $SESSION:1.2 " --trx TRX1@127.0.0.1:5700/1" +tmux send-keys -t $SESSION:1.2 " --trx TRX2@127.0.0.1:5700/2" +tmux send-keys -t $SESSION:1.2 " --trx TRX3@127.0.0.1:5700/3" +tmux send-keys -t $SESSION:1.2 C-m tmux attach -t $SESSION:0