From 756039a160dab5f7f8d6d024e02c041cf1a62987 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=92=A5Hedi=20Ghediri?= Date: Wed, 31 Jul 2024 09:47:20 +0200 Subject: [PATCH] fix test grep --- test/integration/test-login.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/test-login.sh b/test/integration/test-login.sh index e7f0f14..1714cf9 100755 --- a/test/integration/test-login.sh +++ b/test/integration/test-login.sh @@ -20,7 +20,7 @@ RESULT=$($CL_PATH login -p test-password <<< '\n') echo -e "Actual:\n$RESULT" EXPECTED_USERNAME_PROMPT="Please enter your user name [$USER]: " TEST_DESCRIPTION="should prompt '$EXPECTED_USERNAME_PROMPT'" -if ! grep -q "$EXPECTED_USERNAME_PROMPT" <(echo "$RESULT"); then +if ! grep -qF "$EXPECTED_USERNAME_PROMPT" <(echo "$RESULT"); then echo "KO - $TEST_DESCRIPTION" exit 1 else @@ -38,7 +38,7 @@ else fi EXPECTED_PASSWORD="CL_PASSWORD: test-password" TEST_DESCRIPTION="should have password test-password" -if ! grep -q "$EXPECTED_PASSWORD" <(echo "$RESULT"); then +if ! grep -qF "$EXPECTED_PASSWORD" <(echo "$RESULT"); then echo "KO - $TEST_DESCRIPTION" exit 1 else