network/stress/ssh/ssh-stress01-rmt: fix shellcheck error
PATCH v2 1/1 network/stress/ssh/ssh-stress01-rmt: fix shellcheck error
testcases/network/stress/ssh/ssh-stress01-rmt:57:16: error: Since you double quoted this, it will not word split, and the loop will only run once. [SC2066]
Signed-off-by Yixin Zhang <[email protected]>
--- testcases/network/stress/ssh/ssh-stress01-rmt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
testcases/network/stress/ssh/ssh-stress01-rmt +1 -4
@@ -53,10 +53,7 @@ done # Disconnect all ssh connection all_conn=$(ps auxw | grep -Fv grep | \ grep "ssh[[:blank:]].*${ssh_config}" | awk '{print $2}') - -for ssh_pid in "$all_conn"; do - kill $ssh_pid -done +kill $all_conn # Check the connectivity again ssh -$ip_ver -F $ssh_config $server_ipaddr \
Signature · 1 line
2.14.1
Alexey Kodanev
AppliedPATCH v2 1/1 network/stress/ssh/ssh-stress01-rmt: fix shellcheck error
Quoted 6 lines · Yixin Zhang
testcases/network/stress/ssh/ssh-stress01-rmt:57:16: error: Since you double quoted this, it will not word split, and the loop will only run once. [SC2066]
Signed-off-by Yixin Zhang <[email protected]>---
Applied, thanks!