Skip to content

Commit

Permalink
simplify the command and add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Nov 26, 2024
1 parent 89598d1 commit ae95ddd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion apps/wolfsshd/test/sshd_term_close_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +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="timeout 3 $TEST_CLIENT -o StrictHostKeyChecking=no -p $2 -i $PRIVATE_KEY $3@$1 \"sleep 10\""
COMMAND="$TEST_CLIENT -vvv -o UserKnownHostsFile=/dev/null -o ClearAllForwardings=yes -o StrictHostKeyChecking=no -p $2 -i $PRIVATE_KEY $3@$1 \"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\""
echo "$COMMAND &"
$COMMAND &
sleep 1
Expand Down

0 comments on commit ae95ddd

Please sign in to comment.