Skip to content

Commit

Permalink
fix test grep
Browse files Browse the repository at this point in the history
  • Loading branch information
💥Hedi Ghediri committed Jul 31, 2024
1 parent 591c248 commit 756039a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/test-login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 756039a

Please sign in to comment.