From f2a4f042fad7603914459ee6b2f43d6dd537108f Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Tue, 5 Dec 2023 17:17:11 -0700 Subject: [PATCH] run timeout in foreground --- apps/wolfsshd/test/sshd_login_grace_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wolfsshd/test/sshd_login_grace_test.sh b/apps/wolfsshd/test/sshd_login_grace_test.sh index 65b89adc6..f280f01bc 100755 --- a/apps/wolfsshd/test/sshd_login_grace_test.sh +++ b/apps/wolfsshd/test/sshd_login_grace_test.sh @@ -48,7 +48,7 @@ if [ "$RESULT" != 0 ]; then fi # test grace login timeout by stalling on password prompt -timeout 7 "$TEST_CLIENT" -u "$USER" -h "$TEST_HOST" -p "$TEST_PORT" -t +timeout --foreground 7 "$TEST_CLIENT" -u "$USER" -h "$TEST_HOST" -p "$TEST_PORT" -t popd cat ./log.txt | grep "Failed login within grace period"