diff --git a/apps/wolfsshd/test/sshd_term_close_test.sh b/apps/wolfsshd/test/sshd_term_close_test.sh index e058a014..7971b09e 100755 --- a/apps/wolfsshd/test/sshd_term_close_test.sh +++ b/apps/wolfsshd/test/sshd_term_close_test.sh @@ -19,13 +19,13 @@ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/openssl-1.1.1/lib # get the current wolfsshd pid count to compare with WOLFSSHD_PID_COUNT=$(pgrep wolfsshd | wc -l) -COMMAND="$TEST_CLIENT -vvv -o UserKnownHostsFile=/dev/null -o ClearAllForwardings=yes -o StrictHostKeyChecking=no -p $2 -i $PRIVATE_KEY $3@$1 \"echo test\"" +COMMAND="$TEST_CLIENT -vvv -o UserKnownHostsFile=/dev/null -o ClearAllForwardings=yes -o StrictHostKeyChecking=no -p $2 -i $PRIVATE_KEY $3@$1 \"/bin/echo test\"" echo "$COMMAND" set -e $COMMAND set +e -COMMAND="timeout 3 $TEST_CLIENT -vvv -o UserKnownHostsFile=/dev/null -o ClearAllForwardings=yes -o StrictHostKeyChecking=no -p $2 -i $PRIVATE_KEY $3@$1 \"sleep 10\"" +COMMAND="timeout 3 $TEST_CLIENT -vvv -o UserKnownHostsFile=/dev/null -o ClearAllForwardings=yes -o StrictHostKeyChecking=no -p $2 -i $PRIVATE_KEY $3@$1 \"/bin/sleep 10\"" echo "$COMMAND &" $COMMAND & sleep 1